diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index aadd79dc503..ad86343f3a5 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -428,7 +428,8 @@ def work(): if not quiet: print test sys.stdout.flush() - popen = Popen([sys.executable, '-m', 'test.regrtest', + # -E is needed by some tests, e.g. test_import + popen = Popen([sys.executable, '-E', '-m', 'test.regrtest', '--slaveargs', json.dumps(args_tuple)], stdout=PIPE, stderr=STDOUT, universal_newlines=True, close_fds=True)