[Python-checkins] bpo-46362: Ensure abspath() tests pass through environment variables to subprocess (GH-30595)

zooba webhook-mailer at python.org
Fri Jan 14 10:31:48 EST 2022


https://github.com/python/cpython/commit/71c0b859ae16ee748cbb050a1f4de93c04e04f83
commit: 71c0b859ae16ee748cbb050a1f4de93c04e04f83
branch: main
author: neonene <53406459+neonene at users.noreply.github.com>
committer: zooba <steve.dower at microsoft.com>
date: 2022-01-14T15:31:15Z
summary:

bpo-46362: Ensure abspath() tests pass through environment variables to subprocess (GH-30595)

files:
M Lib/test/test_embed.py

diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 02bbe3511c6f7..9fed0a5f14e65 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -1419,7 +1419,8 @@ def test_getpath_abspath_win32(self):
         ]
         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:



More information about the Python-checkins mailing list