mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
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.
This commit is contained in:
parent
7ff59131f8
commit
36e778ef02
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue