summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-08-18 20:44:14 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-08-18 20:44:14 (GMT)
commit36e778ef02b74f8a965da1205813e685e3ffcff4 (patch)
tree7cce052c05aebc14d2b8cec3eade03cebfb19778 /Lib/test/regrtest.py
parent7ff59131f8e5de9a692eb28c3423d95863d583a2 (diff)
downloadcpython-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.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py3
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.