Skip to content

Commit 71c0b85

Browse files
authored
bpo-46362: Ensure abspath() tests pass through environment variables to subprocess (GH-30595)
1 parent c8319f7 commit 71c0b85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_embed.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,8 @@ def test_getpath_abspath_win32(self):
14191419
]
14201420
out, err = self.run_embedded_interpreter(
14211421
"test_init_initialize_config",
1422-
env=dict(PYTHONPATH=os.path.pathsep.join(c[0] for c in CASES))
1422+
env={**remove_python_envvars(),
1423+
"PYTHONPATH": os.path.pathsep.join(c[0] for c in CASES)}
14231424
)
14241425
self.assertEqual(err, "")
14251426
try:

0 commit comments

Comments
 (0)