summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-07-04 21:44:08 (GMT)
committerBrett Cannon <brett@python.org>2013-07-04 21:44:08 (GMT)
commit45091c0a0c4b759f36a2094d324e9e2022b4106b (patch)
treecacec9c108d197e7be6ab37c60afba74407b875e /Lib
parentcd171c8e92c10d327151400fd8f16b11a4964615 (diff)
downloadcpython-45091c0a0c4b759f36a2094d324e9e2022b4106b.zip
cpython-45091c0a0c4b759f36a2094d324e9e2022b4106b.tar.gz
cpython-45091c0a0c4b759f36a2094d324e9e2022b4106b.tar.bz2
Issue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_importlib/import_/test_api.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_importlib/import_/test_api.py b/Lib/test/test_importlib/import_/test_api.py
index b83cead..52a3190 100644
--- 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.
- 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):