Issue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError.

This commit is contained in:
Brett Cannon 2013-07-04 17:44:08 -04:00
parent cd171c8e92
commit 45091c0a0c
1 changed files with 0 additions and 7 deletions

View File

@ -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):