mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
use assert method (#24328)
This commit is contained in:
parent
e20056c8f7
commit
0a3297d7d4
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class MultiPhaseExtensionModuleTests(abc.LoaderTests):
|
||||||
self.assertIsInstance(module, types.ModuleType)
|
self.assertIsInstance(module, types.ModuleType)
|
||||||
self.assertEqual(module.__name__, 'x')
|
self.assertEqual(module.__name__, 'x')
|
||||||
self.assertEqual(module.str_const, 'something different')
|
self.assertEqual(module.str_const, 'something different')
|
||||||
assert 'x' not in sys.modules
|
self.assertNotIn('x', sys.modules)
|
||||||
|
|
||||||
def test_load_twice(self):
|
def test_load_twice(self):
|
||||||
'''Test that 2 loads result in 2 module objects'''
|
'''Test that 2 loads result in 2 module objects'''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue