]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-115538: Use isolate mode when running venv test_multiproces… (#117264)
authorAN Long <aisk@users.noreply.github.com>
Tue, 26 Mar 2024 16:53:37 +0000 (00:53 +0800)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 16:53:37 +0000 (17:53 +0100)
[3.12] gh-115538: Use isolate mode when running venv test_multiprocessing_recursion() (GH-117116)
(cherry picked from commit 4ec347760f98b156c6a2d42ca397af6b0b6ecc50)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_venv.py

index fea16568afebae11bc34b44c9bb3055f736cfbff..7540be2c10b86e9e33ee865ffbda1c778eec83f9 100644 (file)
@@ -494,7 +494,7 @@ class BasicTest(BaseTest):
         envpy = os.path.join(os.path.realpath(self.env_dir),
                              self.bindir, self.exe)
         script = os.path.join(TEST_HOME_DIR, '_test_venv_multiprocessing.py')
-        subprocess.check_call([envpy, script])
+        subprocess.check_call([envpy, "-I", script])
 
     @unittest.skipIf(os.name == 'nt', 'not relevant on Windows')
     def test_deactivate_with_strict_bash_opts(self):