diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-27 15:41:07 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-27 15:41:07 (GMT) |
| commit | cf807c04a36821ff3288dfd16927d28236e60238 (patch) | |
| tree | 5cfcfbf5bf0161674450b81b33bedca6314c4b2d /Lib/test/regrtest.py | |
| parent | 3a121561b74fd219d8eb1849ca36515ee0e474b0 (diff) | |
| download | cpython-cf807c04a36821ff3288dfd16927d28236e60238.zip cpython-cf807c04a36821ff3288dfd16927d28236e60238.tar.gz cpython-cf807c04a36821ff3288dfd16927d28236e60238.tar.bz2 | |
Flush stdout and stderr when running tests in parallel
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
Diffstat (limited to 'Lib/test/regrtest.py')
| -rwxr-xr-x | Lib/test/regrtest.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, 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? |
