mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
use assert[Not]In where appropriate
A patch from Dave Malcolm.
This commit is contained in:
parent
a69ba65fdc
commit
577473fe68
75 changed files with 471 additions and 454 deletions
|
@ -636,7 +636,7 @@ class Test_TestLoader(TestCase):
|
|||
self.assertEqual(list(suite), [])
|
||||
|
||||
# audioop should now be loaded, thanks to loadTestsFromName()
|
||||
self.assertTrue(module_name in sys.modules)
|
||||
self.assertIn(module_name, sys.modules)
|
||||
finally:
|
||||
if module_name in sys.modules:
|
||||
del sys.modules[module_name]
|
||||
|
@ -1024,7 +1024,7 @@ class Test_TestLoader(TestCase):
|
|||
self.assertEqual(list(suite), [unittest.TestSuite()])
|
||||
|
||||
# audioop should now be loaded, thanks to loadTestsFromName()
|
||||
self.assertTrue(module_name in sys.modules)
|
||||
self.assertIn(module_name, sys.modules)
|
||||
finally:
|
||||
if module_name in sys.modules:
|
||||
del sys.modules[module_name]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue