mirror of
https://github.com/python/cpython.git
synced 2025-08-01 23:53:15 +00:00
bpo-35363: test_eintr uses print(flush=True) (GH-10990)
This commit is contained in:
parent
388c8c208d
commit
0644b33821
1 changed files with 3 additions and 2 deletions
|
@ -20,12 +20,13 @@ class EINTRTests(unittest.TestCase):
|
||||||
args = ["-u", tester, "-v"]
|
args = ["-u", tester, "-v"]
|
||||||
if support.verbose:
|
if support.verbose:
|
||||||
print()
|
print()
|
||||||
print("--- run eintr_tester.py ---")
|
print("--- run eintr_tester.py ---", flush=True)
|
||||||
# In verbose mode, the child process inherit stdout and stdout,
|
# In verbose mode, the child process inherit stdout and stdout,
|
||||||
# to see output in realtime and reduce the risk of loosing output.
|
# to see output in realtime and reduce the risk of loosing output.
|
||||||
args = [sys.executable, "-E", "-X", "faulthandler", *args]
|
args = [sys.executable, "-E", "-X", "faulthandler", *args]
|
||||||
proc = subprocess.run(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:
|
if proc.returncode:
|
||||||
self.fail("eintr_tester.py failed")
|
self.fail("eintr_tester.py failed")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue