]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46362: Ensure abspath() tests pass through environment variables to subprocess...
authorneonene <53406459+neonene@users.noreply.github.com>
Fri, 14 Jan 2022 15:31:15 +0000 (00:31 +0900)
committerGitHub <noreply@github.com>
Fri, 14 Jan 2022 15:31:15 +0000 (15:31 +0000)
Lib/test/test_embed.py

index 02bbe3511c6f79aa36207251b64e532af53f9fe3..9fed0a5f14e65253d71b594f870ff1b320fa9387 100644 (file)
@@ -1419,7 +1419,8 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
         ]
         out, err = self.run_embedded_interpreter(
             "test_init_initialize_config",
-            env=dict(PYTHONPATH=os.path.pathsep.join(c[0] for c in CASES))
+            env={**remove_python_envvars(),
+                 "PYTHONPATH": os.path.pathsep.join(c[0] for c in CASES)}
         )
         self.assertEqual(err, "")
         try: