From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 6 Dec 2018 13:40:31 +0000 (-0800) Subject: bpo-35363: test_eintr uses print(flush=True) (GH-10990) X-Git-Tag: v3.6.8rc1~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f0e8e225e2275d22c4bd2e8f8f212b6a8b849aa;p=thirdparty%2FPython%2Fcpython.git bpo-35363: test_eintr uses print(flush=True) (GH-10990) (cherry picked from commit 0644b33821b70efbf0ac1ec1fb8729b05796564a) Co-authored-by: Victor Stinner --- diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py index c2e8deadbab7..f61efa3c648e 100644 --- a/Lib/test/test_eintr.py +++ b/Lib/test/test_eintr.py @@ -20,12 +20,13 @@ class EINTRTests(unittest.TestCase): 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: