Skip to content

Commit

Permalink
src/sage/doctest/reporting.py: Make 'AlarmInterrupt in doctesting fra…
Browse files Browse the repository at this point in the history
…mework' baseline-aware
  • Loading branch information
Matthias Koeppe committed Dec 23, 2023
1 parent c05bdba commit 0bfd2c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sage/doctest/reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ def report(self, source, timeout, return_code, results, output, pid=None):
stats[basename] = {"failed": True, "walltime": wall, "ntests": ntests}
else:
stats[basename] = {"failed": True, "walltime": 1e6, "ntests": ntests}
self.error_status |= 64
if not baseline.get('failed', False): # e.g. AlarmInterrupt in doctesting framework
self.error_status |= 64
if result_dict.err is None or result_dict.err == 'tab':
f = result_dict.failures
if f:
Expand Down

0 comments on commit 0bfd2c9

Please sign in to comment.