summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-05-25 15:21:55 (GMT)
committerGitHub <noreply@github.com>2018-05-25 15:21:55 (GMT)
commit4f0bc7f7ab6ec23594b0efe11d082f78ae42abed (patch)
treeec73d497f1ee0166667b8e4181dddd4eef528203 /Lib/test/libregrtest
parent6e413f4327a68c4c7d62e0b6d0f9144be11dd6cd (diff)
downloadcpython-4f0bc7f7ab6ec23594b0efe11d082f78ae42abed.zip
cpython-4f0bc7f7ab6ec23594b0efe11d082f78ae42abed.tar.gz
cpython-4f0bc7f7ab6ec23594b0efe11d082f78ae42abed.tar.bz2
test.regrtest: flush stdout when display progress (#7105)
runtest_mp.py: call print() with flush=True.
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r--Lib/test/libregrtest/runtest_mp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/libregrtest/runtest_mp.py b/Lib/test/libregrtest/runtest_mp.py
index 31b830d..598754f 100644
--- a/Lib/test/libregrtest/runtest_mp.py
+++ b/Lib/test/libregrtest/runtest_mp.py
@@ -183,7 +183,7 @@ def run_tests_multiprocess(regrtest):
except queue.Empty:
running = get_running(workers)
if running and not regrtest.ns.pgo:
- print('running: %s' % ', '.join(running))
+ print('running: %s' % ', '.join(running), flush=True)
continue
test, stdout, stderr, result = item
@@ -235,6 +235,6 @@ def run_tests_multiprocess(regrtest):
line = "Waiting for %s (%s tests)" % (', '.join(running), len(running))
if dt >= WAIT_PROGRESS:
line = "%s since %.0f sec" % (line, dt)
- print(line)
+ print(line, flush=True)
for worker in workers:
worker.join(WAIT_PROGRESS)