]> granicus.if.org Git - python/commitdiff
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
authorVictor Stinner <vstinner@redhat.com>
Thu, 6 Dec 2018 13:16:21 +0000 (14:16 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Dec 2018 13:16:21 +0000 (14:16 +0100)
Lib/test/test_eintr.py

index c2e8deadbab752025187660c8ace1a2975a592bb..f61efa3c648e6677631a0f14194205a033f63389 100644 (file)
@@ -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: