summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-08-18 20:45:10 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-08-18 20:45:10 (GMT)
commit0dd8e1da286499e4d8bffebabe939b6ca3c1345b (patch)
tree7097567e84316f2c8edb50384ead9d04808d9262 /Lib
parentaa8954523c0845e90fcaba5de4094d087b97f91b (diff)
downloadcpython-0dd8e1da286499e4d8bffebabe939b6ca3c1345b.zip
cpython-0dd8e1da286499e4d8bffebabe939b6ca3c1345b.tar.gz
cpython-0dd8e1da286499e4d8bffebabe939b6ca3c1345b.tar.bz2
Merged revisions 84176 via svnmerge from
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. ........
Diffstat (limited to 'Lib')
-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 fae5fe5..cd7bc48 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -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.