]> granicus.if.org Git - python/commitdiff
Backport fix for buglet from py3k
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 29 Jun 2009 14:14:56 +0000 (14:14 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 29 Jun 2009 14:14:56 +0000 (14:14 +0000)
Lib/test/regrtest.py

index aadd79dc5034285756317f8769bfd8783b5578bc..ad86343f3a5fa11392b2c98bec2b54e240b299f8 100755 (executable)
@@ -428,7 +428,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
                     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)