From: Victor Stinner Date: Mon, 28 May 2018 11:30:42 +0000 (+0200) Subject: test.regrtest: flush stdout to display progress (#7120) X-Git-Tag: v2.7.16rc1~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da37adc281286b8ef9ff3e882fe9de35c23507f;p=thirdparty%2FPython%2Fcpython.git test.regrtest: flush stdout to display progress (#7120) Call sys.stdout.flush() after displaying "running: ...". --- diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 6df8f86d9579..c4f27814029c 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -782,6 +782,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, running = get_running(workers) if running and not pgo: print('running: %s' % ', '.join(running)) + sys.stdout.flush() continue test, stdout, stderr, result = item @@ -802,7 +803,7 @@ def main(tests=None, testdir=None, verbose=0, quiet=False, display_progress(test_index, text) if stdout: - print stdout + print(stdout) sys.stdout.flush() if stderr and not pgo: print >>sys.stderr, stderr