Skip to content

Commit

Permalink
src/sage/doctest/forker.py: change the slow doctest warning punctuation
Browse files Browse the repository at this point in the history
Switch "Warning, slow doctest:" to "Warning: slow doctest:" so that
the leading "Warning: " is consistent with other warnings. This
ultimately prevents these slow doctest warnings from being converted
into error annotations on the Github CI.
  • Loading branch information
orlitzky committed Oct 20, 2024
1 parent 660e8ca commit efa14c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1537,12 +1537,12 @@ def report_overtime(self, out, test, example, got, *, check_timer=None):
sage: DTR.report_overtime(sys.stdout.write, doctests[0], ex, 'BAD ANSWER\n', check_timer=check)
**********************************************************************
File ".../sage/doctest/forker.py", line 12, in sage.doctest.forker
Warning, slow doctest:
Warning: slow doctest:
doctest_var = 42; doctest_var^2
Test ran for 1.23s cpu, 2.50s wall
Check ran for 2.34s cpu, 3.12s wall
"""
out(self._failure_header(test, example, 'Warning, slow doctest:') +
out(self._failure_header(test, example, 'Warning: slow doctest:') +
('Test ran for %.2fs cpu, %.2fs wall\nCheck ran for %.2fs cpu, %.2fs wall\n'
% (example.cputime,
example.walltime,
Expand Down

0 comments on commit efa14c3

Please sign in to comment.