]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] [3.12] gh-115538: Use isolate mode when running venv test_multiproces… (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 Mar 2024 17:13:23 +0000 (18:13 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Mar 2024 17:13:23 +0000 (17:13 +0000)
[3.12] gh-115538: Use isolate mode when running venv test_multiproces… (GH-117264)

[3.12] gh-115538: Use isolate mode when running venv test_multiprocessing_recursion() (GH-117116)
(cherry picked from commit 4ec347760f98b156c6a2d42ca397af6b0b6ecc50)

(cherry picked from commit ca0793980b90a6a0f9a91f1a5303a1f27b235f83)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_venv.py

index eb9227a3b703794db7e538490e6060d05f8a0436..a60f4cd3111ea8b790105d21408d882ca2c5b88f 100644 (file)
@@ -495,7 +495,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):