Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c70ca9 + 0a3297d commit 3979323Copy full SHA for 3979323
1 file changed
Lib/test/test_importlib/extension/test_loader.py
@@ -183,7 +183,7 @@ def test_load_short_name(self):
183
self.assertIsInstance(module, types.ModuleType)
184
self.assertEqual(module.__name__, 'x')
185
self.assertEqual(module.str_const, 'something different')
186
- assert 'x' not in sys.modules
+ self.assertNotIn('x', sys.modules)
187
188
def test_load_twice(self):
189
'''Test that 2 loads result in 2 module objects'''
0 commit comments