Skip to content

Commit cd29bdf

Browse files
vstinnerambv
authored andcommitted
Update Lib/test/test_site.py
1 parent f8a6df0 commit cd29bdf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Lib/test/test_site.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -624,13 +624,13 @@ def test_system_site_packages(self):
624624

625625
with self.venv(system_site_packages=False) as venv:
626626
sys_path = json.loads(venv.run('-c', script).stdout)
627-
assert system_paths['purelib'] not in sys_path, sys_path
628-
assert system_paths['platlib'] not in sys_path, sys_path
627+
self.assertNotIn(system_paths['purelib'], sys_path)
628+
self.assertNotIn(system_paths['platlib'], sys_path)
629629

630630
with self.venv(system_site_packages=True) as venv:
631631
sys_path = json.loads(venv.run('-c', script).stdout)
632-
assert system_paths['purelib'] in sys_path, sys_path
633-
assert system_paths['platlib'] in sys_path, sys_path
632+
self.assertIn(system_paths['purelib'], sys_path)
633+
self.assertIn(system_paths['platlib'], sys_path)
634634

635635

636636
class StartupImportTests(unittest.TestCase):

0 commit comments

Comments
 (0)