Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36e778e

Browse files
committed
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.
1 parent 7ff5913 commit 36e778e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/regrtest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ def work():
547547
popen = Popen([sys.executable, '-E', '-m', 'test.regrtest',
548548
'--slaveargs', json.dumps(args_tuple)],
549549
stdout=PIPE, stderr=PIPE,
550-
universal_newlines=True, close_fds=True)
550+
universal_newlines=True,
551+
close_fds=(os.name != 'nt'))
551552
stdout, stderr = popen.communicate()
552553
# Strip last refcount output line if it exists, since it
553554
# comes from the shutdown of the interpreter in the subcommand.

0 commit comments

Comments
 (0)