From 74abde2e57539422b20a51c8f290998ccf38353d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 25 May 2018 17:40:17 +0200 Subject: [PATCH] test.regrtest: flush stdout to display progress Call sys.stdout.flush() after displaying "running: ...". --- Lib/test/regrtest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 6df8f86d95799a..c4f27814029c04 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py @@ -782,6 +782,7 @@ def get_running(workers): 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 get_running(workers): display_progress(test_index, text) if stdout: - print stdout + print(stdout) sys.stdout.flush() if stderr and not pgo: print >>sys.stderr, stderr