From ca0793980b90a6a0f9a91f1a5303a1f27b235f83 Mon Sep 17 00:00:00 2001 From: AN Long Date: Wed, 27 Mar 2024 00:53:37 +0800 Subject: [PATCH] =?utf8?q?[3.12]=20gh-115538:=20Use=20isolate=20mode=20whe?= =?utf8?q?n=20running=20venv=20test=5Fmultiproces=E2=80=A6=20(#117264)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit [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 --- Lib/test/test_venv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index fea16568afeb..7540be2c10b8 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -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): -- 2.47.3