diff options
author | Benjamin Peterson <benjamin@python.org> | 2015-05-29 23:44:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2015-05-29 23:44:45 (GMT) |
commit | 0a3297d7d4e042d8fbb884a029f0ef7ad8b00e46 (patch) | |
tree | 5cb701f56e0a9c0fbd8e6f46c7f913dd60e5e99f | |
parent | e20056c8f71a8e289016c0cbd5adb5826cd91f64 (diff) | |
download | cpython-0a3297d7d4e042d8fbb884a029f0ef7ad8b00e46.zip cpython-0a3297d7d4e042d8fbb884a029f0ef7ad8b00e46.tar.gz cpython-0a3297d7d4e042d8fbb884a029f0ef7ad8b00e46.tar.bz2 |
use assert method (#24328)
-rw-r--r-- | Lib/test/test_importlib/extension/test_loader.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/extension/test_loader.py b/Lib/test/test_importlib/extension/test_loader.py index d82c805..24e0330 100644 --- a/Lib/test/test_importlib/extension/test_loader.py +++ b/Lib/test/test_importlib/extension/test_loader.py @@ -183,7 +183,7 @@ class MultiPhaseExtensionModuleTests(abc.LoaderTests): self.assertIsInstance(module, types.ModuleType) self.assertEqual(module.__name__, 'x') self.assertEqual(module.str_const, 'something different') - assert 'x' not in sys.modules + self.assertNotIn('x', sys.modules) def test_load_twice(self): '''Test that 2 loads result in 2 module objects''' |