Skip to content

Commit cf9024f

Browse files
author
Matthias Koeppe
committed
src/sage/doctest/reporting.py: Improve comment
1 parent 19f64d4 commit cf9024f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sage/doctest/reporting.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,11 @@ 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-
if not baseline.get('failed', False): # e.g. AlarmInterrupt in doctesting framework
511+
# This codepath is triggered by doctests that test some timeout
512+
# ("AlarmInterrupt in doctesting framework") or other signal handling
513+
# behavior. This is why we handle the baseline in this codepath,
514+
# in contrast to other "Error in doctesting framework" codepaths.
515+
if not baseline.get('failed', False):
512516
self.error_status |= 64
513517
if result_dict.err is None or result_dict.err == 'tab':
514518
f = result_dict.failures

0 commit comments

Comments
 (0)