diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-18 20:44:14 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-08-18 20:44:14 (GMT) |
commit | 36e778ef02b74f8a965da1205813e685e3ffcff4 (patch) | |
tree | 7cce052c05aebc14d2b8cec3eade03cebfb19778 | |
parent | 7ff59131f8e5de9a692eb28c3423d95863d583a2 (diff) | |
download | cpython-36e778ef02b74f8a965da1205813e685e3ffcff4.zip cpython-36e778ef02b74f8a965da1205813e685e3ffcff4.tar.gz cpython-36e778ef02b74f8a965da1205813e685e3ffcff4.tar.bz2 |
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.
-rwxr-xr-x | Lib/test/regrtest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 9c4584c..308baf4 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -547,7 +547,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. |