Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a3297d

Browse files
committed
use assert method (#24328)
1 parent e20056c commit 0a3297d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_importlib/extension/test_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def test_load_short_name(self):
183183
self.assertIsInstance(module, types.ModuleType)
184184
self.assertEqual(module.__name__, 'x')
185185
self.assertEqual(module.str_const, 'something different')
186-
assert 'x' not in sys.modules
186+
self.assertNotIn('x', sys.modules)
187187

188188
def test_load_twice(self):
189189
'''Test that 2 loads result in 2 module objects'''

0 commit comments

Comments
 (0)