Skip to content

Commit 19f64d4

Browse files
author
Matthias Koeppe
committed
src/sage/doctest/reporting.py: Make 'AlarmInterrupt in doctesting framework' baseline-aware
1 parent 719f8d0 commit 19f64d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sage/doctest/reporting.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ def report(self, source, timeout, return_code, results, output, pid=None):
508508
stats[basename] = {"failed": True, "walltime": wall, "ntests": ntests}
509509
else:
510510
stats[basename] = {"failed": True, "walltime": 1e6, "ntests": ntests}
511-
self.error_status |= 64
511+
if not baseline.get('failed', False): # e.g. AlarmInterrupt in doctesting framework
512+
self.error_status |= 64
512513
if result_dict.err is None or result_dict.err == 'tab':
513514
f = result_dict.failures
514515
if f:

0 commit comments

Comments
 (0)