From 71c0b859ae16ee748cbb050a1f4de93c04e04f83 Mon Sep 17 00:00:00 2001 From: neonene <53406459+neonene@users.noreply.github.com> Date: Sat, 15 Jan 2022 00:31:15 +0900 Subject: bpo-46362: Ensure abspath() tests pass through environment variables to subprocess (GH-30595) --- Lib/test/test_embed.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index 02bbe35..9fed0a5 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: -- cgit v0.12