commit | cf807c04a36821ff3288dfd16927d28236e60238 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Wed Jun 27 17:41:07 2012 +0200 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Wed Jun 27 17:41:07 2012 +0200 |
tree | 5cfcfbf5bf0161674450b81b33bedca6314c4b2d | |
parent | 3a121561b74fd219d8eb1849ca36515ee0e474b0 [diff] |
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 75a9bec..f01dcef 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py
@@ -540,6 +540,8 @@ 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?