mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
test.regrtest: flush stdout when display progress (GH-7105)
runtest_mp.py: call print() with flush=True.
(cherry picked from commit 4f0bc7f7ab
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
This commit is contained in:
parent
ef91ddeae7
commit
af1d007bdb
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue