Skip to content

Commit cf807c0

Browse files
committed
Flush stdout and stderr when running tests in parallel
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
1 parent 3a12156 commit cf807c0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/regrtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,8 @@ def work():
540540
print stdout
541541
if stderr:
542542
print >>sys.stderr, stderr
543+
sys.stdout.flush()
544+
sys.stderr.flush()
543545
if result[0] == INTERRUPTED:
544546
assert result[1] == 'KeyboardInterrupt'
545547
raise KeyboardInterrupt # What else?

0 commit comments

Comments
 (0)