From bb1faf3bf03fd571a1192868f7bf2d58f2c1c6d5 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 6 Dec 2018 13:21:45 +0100 Subject: [PATCH] bpo-35363: test_eintr uses print(flush=True) --- Lib/test/test_eintr.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py index c2e8deadbab7520..f61efa3c648e667 100644 --- a/Lib/test/test_eintr.py +++ b/Lib/test/test_eintr.py @@ -20,12 +20,13 @@ def test_all(self): args = ["-u", tester, "-v"] if support.verbose: print() - print("--- run eintr_tester.py ---") + print("--- run eintr_tester.py ---", flush=True) # In verbose mode, the child process inherit stdout and stdout, # to see output in realtime and reduce the risk of loosing output. args = [sys.executable, "-E", "-X", "faulthandler", *args] proc = subprocess.run(args) - print(f"--- eintr_tester.py completed: exit code {proc.returncode} ---") + print(f"--- eintr_tester.py completed: " + f"exit code {proc.returncode} ---", flush=True) if proc.returncode: self.fail("eintr_tester.py failed") else: