mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -270,7 +270,7 @@ class ImportSideEffectTests(unittest.TestCase):
|
|||
site.removeduppaths()
|
||||
seen_paths = set()
|
||||
for path in sys.path:
|
||||
self.assertTrue(path not in seen_paths)
|
||||
self.assertNotIn(path, seen_paths)
|
||||
seen_paths.add(path)
|
||||
|
||||
def test_add_build_dir(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue