]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115538: Use isolate mode when running venv test_multiprocessing_recursion() (...
authorAN Long <aisk@users.noreply.github.com>
Tue, 26 Mar 2024 14:09:57 +0000 (22:09 +0800)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 14:09:57 +0000 (15:09 +0100)
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_venv.py

index f60c662d322e382ef3cb7103a614ccca1a1f9a38..63cc4b743862bc988640d03ccc21e1caa947f0ce 100644 (file)
@@ -531,7 +531,7 @@ class BasicTest(BaseTest):
         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):