]> granicus.if.org Git - python/commitdiff
Merged revisions 84176 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 18 Aug 2010 20:45:10 +0000 (20:45 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 18 Aug 2010 20:45:10 +0000 (20:45 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84176 | antoine.pitrou | 2010-08-18 22:44:14 +0200 (mer., 18 août 2010) | 5 lines

  Issue #9433: The "-j" option to regrtest now works under Windows too.
  It is not sure it will be beneficial, though, since process launching is
  more expensive under Windows than it is under Linux.
........

Lib/test/regrtest.py

index fae5fe550705bc0ef7efe2149614ed3fa162e3e5..cd7bc484a5237c7487ab9b5fb52a69e3fa8394f7 100755 (executable)
@@ -509,7 +509,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
                     popen = Popen([sys.executable, '-E', '-m', 'test.regrtest',
                                    '--slaveargs', json.dumps(args_tuple)],
                                    stdout=PIPE, stderr=PIPE,
-                                   universal_newlines=True, close_fds=True)
+                                   universal_newlines=True,
+                                   close_fds=(os.name != 'nt'))
                     stdout, stderr = popen.communicate()
                     # Strip last refcount output line if it exists, since it
                     # comes from the shutdown of the interpreter in the subcommand.