mirror of https://github.com/python/cpython.git
Flush stdout and stderr when running tests in parallel
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
This commit is contained in:
parent
3a121561b7
commit
cf807c04a3
|
@ -540,6 +540,8 @@ def work():
|
|||
print stdout
|
||||
if stderr:
|
||||
print >>sys.stderr, stderr
|
||||
sys.stdout.flush()
|
||||
sys.stderr.flush()
|
||||
if result[0] == INTERRUPTED:
|
||||
assert result[1] == 'KeyboardInterrupt'
|
||||
raise KeyboardInterrupt # What else?
|
||||
|
|
Loading…
Reference in New Issue