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

This commit is contained in:
neonene 2022-01-15 00:31:15 +09:00 committed by GitHub
parent c8319f7921
commit 71c0b859ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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: