[Python-checkins] bpo-35363: test_eintr uses print(flush=True) (GH-10990)

Miss Islington (bot) webhook-mailer at python.org
Thu Dec 6 08:35:04 EST 2018


https://github.com/python/cpython/commit/560fa4db17983ce37c1453c057901c627b2c3abc
commit: 560fa4db17983ce37c1453c057901c627b2c3abc
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-12-06T05:34:59-08:00
summary:

bpo-35363: test_eintr uses print(flush=True) (GH-10990)

(cherry picked from commit 0644b33821b70efbf0ac1ec1fb8729b05796564a)

Co-authored-by: Victor Stinner <vstinner at redhat.com>

files:
M Lib/test/test_eintr.py

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 @@ 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:



More information about the Python-checkins mailing list