Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit d7d2cff

Browse files
committed
Trac #32981: specify wall seconds in sage -t --verbose output.
Now that cpu seconds are used for --warn-long, we should disambiguate wherever wall seconds are still used.
1 parent 8203890 commit d7d2cff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/doctest/forker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,12 +1269,12 @@ def report_success(self, out, test, example, got, *, check_timer=None):
12691269
sage: check.walltime = 2.71
12701270
sage: DTR.report_success(sys.stdout.write, doctests[0], ex, '1764',
12711271
....: check_timer=check)
1272-
ok [3.83 s]
1272+
ok [3.83s wall]
12731273
"""
12741274
# We completely replace doctest.DocTestRunner.report_success
12751275
# so that we can include time taken for the test
12761276
if self._verbose:
1277-
out("ok [%.2f s]\n" %
1277+
out("ok [%.2fs wall]\n" %
12781278
(example.walltime + check_timer.walltime))
12791279

12801280
def report_failure(self, out, test, example, got, globs):

0 commit comments

Comments
 (0)