summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-12-06 13:16:21 (GMT)
committerGitHub <noreply@github.com>2018-12-06 13:16:21 (GMT)
commit0644b33821b70efbf0ac1ec1fb8729b05796564a (patch)
tree2bb716e3455ffe3100d9c02f291f189aff8a3f33 /Lib
parent388c8c208d9d09bd28289c1e4776b947d4d0f0f0 (diff)
downloadcpython-0644b33821b70efbf0ac1ec1fb8729b05796564a.zip
cpython-0644b33821b70efbf0ac1ec1fb8729b05796564a.tar.gz
cpython-0644b33821b70efbf0ac1ec1fb8729b05796564a.tar.bz2
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_eintr.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_eintr.py b/Lib/test/test_eintr.py
index c2e8dea..f61efa3 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: