Flush stdout and stderr when running tests in parallel
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 90931e7..beb2ba8 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -677,6 +677,8 @@
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?