cpython: 0e4e062751fa (original) (raw)
Mercurial > cpython
changeset 84443:0e4e062751fa
Issue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError. [#15767]
Brett Cannon brett@python.org | |
---|---|
date | Thu, 04 Jul 2013 17:44:08 -0400 |
parents | 7769c4d72806 |
children | e3ec8b176a80 |
files | Lib/test/test_importlib/import_/test_api.py |
diffstat | 1 files changed, 0 insertions(+), 7 deletions(-)[+] [-] Lib/test/test_importlib/import_/test_api.py 7 |
line wrap: on
line diff
--- a/Lib/test/test_importlib/import_/test_api.py +++ b/Lib/test/test_importlib/import_/test_api.py @@ -26,13 +26,6 @@ class APITest(unittest.TestCase): 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.[](#l1.8)
with importlib_test_util.uncache('not_here'):[](#l1.9)
sys.modules['not_here'] = None[](#l1.10)
with self.assertRaises(ModuleNotFoundError):[](#l1.11)
util.import_('not_here')[](#l1.12)
- def test_name_requires_rparition(self): # Raise TypeError if a non-string is passed in for the module name. with self.assertRaises(TypeError):