Commit 0a3297d7 authored by Benjamin Peterson's avatar Benjamin Peterson

use assert method (#24328)

parent e20056c8
......@@ -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'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment