From: neonene <53406459+neonene@users.noreply.github.com> Date: Fri, 14 Jan 2022 15:31:15 +0000 (+0900) Subject: bpo-46362: Ensure abspath() tests pass through environment variables to subprocess... X-Git-Tag: v3.11.0a5~248^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71c0b859ae16ee748cbb050a1f4de93c04e04f83;p=thirdparty%2FPython%2Fcpython.git bpo-46362: Ensure abspath() tests pass through environment variables to subprocess (GH-30595) --- diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index 02bbe3511c6f..9fed0a5f14e6 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -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: