Skip to content

Commit 97bec8e

Browse files
committed
Pass -E to subprocesses from check_add_python_opts
Avoid the runtime environment from affecting the tests' behaviours, which notably checks the warning filters which can be controlled by various environment variables.
1 parent 6372d48 commit 97bec8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_regrtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2277,7 +2277,7 @@ def test_python_opts(self):
22772277

22782278
# Use directly subprocess to control the exact command line
22792279
cmd = [sys.executable,
2280-
"-m", "test", option,
2280+
"-E", "-m", "test", option,
22812281
f'--testdir={self.tmptestdir}',
22822282
testname]
22832283
proc = subprocess.run(cmd,

0 commit comments

Comments
 (0)