aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/libregrtest/results.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/libregrtest/results.py')
-rw-r--r--Lib/test/libregrtest/results.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/results.py b/Lib/test/libregrtest/results.py
index 59a566c0328..a41ea8aba02 100644
--- a/Lib/test/libregrtest/results.py
+++ b/Lib/test/libregrtest/results.py
@@ -117,6 +117,8 @@ class TestResults:
self.worker_bug = True
if result.has_meaningful_duration() and not rerun:
+ if result.duration is None:
+ raise ValueError("result.duration is None")
self.test_times.append((result.duration, test_name))
if result.stats is not None:
self.stats.accumulate(result.stats)