Commit 3eb449e8 authored by Antoine Pitrou's avatar Antoine Pitrou

Flush stdout and stderr when running tests in parallel

(helps getting results in real-time when stdio is transmitted over a pipe or socket)
parents 9614dfd1 e3df2055
......@@ -677,6 +677,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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment