mirror of https://github.com/python/cpython
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
d0bb9c6386
commit
8237258e09
|
@ -610,6 +610,8 @@ def main(tests=None, testdir=None, verbose=0, quiet=False,
|
|||
print(stdout)
|
||||
if stderr:
|
||||
print(stderr, file=sys.stderr)
|
||||
sys.stdout.flush()
|
||||
sys.stderr.flush()
|
||||
if result[0] == INTERRUPTED:
|
||||
assert result[1] == 'KeyboardInterrupt'
|
||||
raise KeyboardInterrupt # What else?
|
||||
|
|
Loading…
Reference in New Issue