aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/libregrtest/single.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/libregrtest/single.py')
-rw-r--r--Lib/test/libregrtest/single.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/single.py b/Lib/test/libregrtest/single.py
index 635b4f93702..c26e542cf15 100644
--- a/Lib/test/libregrtest/single.py
+++ b/Lib/test/libregrtest/single.py
@@ -271,5 +271,9 @@ def run_single_test(test_name: TestName, runtests: RunTests) -> TestResult:
print(f"test {test_name} crashed -- {msg}",
file=sys.stderr, flush=True)
result.state = State.UNCAUGHT_EXC
+
+ sys.stdout.flush()
+ sys.stderr.flush()
+
result.duration = time.perf_counter() - start_time
return result