gh-115538: Use isolate mode when running venv test_multiprocessing_recursion() (#117116)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
AN Long 2024-03-26 22:09:57 +08:00 committed by GitHub
parent 743f2c68f4
commit 4ec347760f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -531,7 +531,7 @@ def test_multiprocessing_recursion(self):
rmtree(self.env_dir)
self.run_with_capture(venv.create, self.env_dir)
script = os.path.join(TEST_HOME_DIR, '_test_venv_multiprocessing.py')
subprocess.check_call([self.envpy(real_env_dir=True), script])
subprocess.check_call([self.envpy(real_env_dir=True), "-I", script])
@unittest.skipIf(os.name == 'nt', 'not relevant on Windows')
def test_deactivate_with_strict_bash_opts(self):