Skip to content

Commit 64165d6

Browse files
authored
Update Lib/test/test_site.py
1 parent 61f7bfb commit 64165d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/test/test_site.py

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

597597
with self.venv(system_site_packages=False) as venv:
598598
sys_path = json.loads(venv.run('-c', script).stdout)
599-
assert system_paths['purelib'] not in sys_path, sys_path
600-
assert system_paths['platlib'] not in sys_path, sys_path
599+
self.assertNotIn(system_paths['purelib'], sys_path)
600+
self.assertNotIn(system_paths['platlib'], sys_path)
601601

602602
with self.venv(system_site_packages=True) as venv:
603603
sys_path = json.loads(venv.run('-c', script).stdout)
604-
assert system_paths['purelib'] in sys_path, sys_path
605-
assert system_paths['platlib'] in sys_path, sys_path
604+
self.assertIn(system_paths['purelib'], sys_path)
605+
self.assertIn(system_paths['platlib'], sys_path)
606606

607607

608608
class StartupImportTests(unittest.TestCase):

0 commit comments

Comments
 (0)