Skip to content

Commit f92f39f

Browse files
committed
Use support.make_clean_env() instead of -E
1 parent 6fd7977 commit f92f39f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/test/test_regrtest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,13 +2277,14 @@ def test_python_opts(self):
22772277

22782278
# Use directly subprocess to control the exact command line
22792279
cmd = [sys.executable,
2280-
"-E", "-m", "test", option,
2280+
"-m", "test", option,
22812281
f'--testdir={self.tmptestdir}',
22822282
testname]
22832283
proc = subprocess.run(cmd,
22842284
stdout=subprocess.PIPE,
22852285
stderr=subprocess.STDOUT,
2286-
text=True)
2286+
text=True,
2287+
env=support.make_clean_env())
22872288
self.assertEqual(proc.returncode, 0, proc)
22882289

22892290
def test_add_python_opts(self):

0 commit comments

Comments
 (0)