changeset: 84443:0e4e062751fa user: Brett Cannon date: Thu Jul 04 17:44:08 2013 -0400 files: Lib/test/test_importlib/import_/test_api.py description: Issue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError. diff -r 7769c4d72806 -r 0e4e062751fa Lib/test/test_importlib/import_/test_api.py --- a/Lib/test/test_importlib/import_/test_api.py Thu Jul 04 17:43:24 2013 -0400 +++ b/Lib/test/test_importlib/import_/test_api.py Thu Jul 04 17:44:08 2013 -0400 @@ -26,13 +26,6 @@ with self.assertRaises(ModuleNotFoundError): util.import_('some module that does not exist') - def test_raises_ModuleNotFoundError_for_None(self): - # None in sys.modules should raise ModuleNotFoundError. - with importlib_test_util.uncache('not_here'): - sys.modules['not_here'] = None - with self.assertRaises(ModuleNotFoundError): - util.import_('not_here') - def test_name_requires_rparition(self): # Raise TypeError if a non-string is passed in for the module name. with self.assertRaises(TypeError):

AltStyle によって変換されたページ (->オリジナル) /