Commit 1da37adc authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

test.regrtest: flush stdout to display progress (#7120)

Call sys.stdout.flush() after displaying "running: ...".
parent 804fcf66
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment