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

Commit

Permalink
25378: better doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
seblabbe committed Aug 22, 2018
1 parent 4f8a7ac commit 7c7e278
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/sage/doctest/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -1148,23 +1148,24 @@ def run(self):
providing a logfile does not raise a ValueError: I/O operation on
closed file)::
sage: DD = DocTestDefaults(optional=set(['sage', 'external']), logfile=tmp_filename())
sage: filename = os.path.join(SAGE_SRC, "sage", "misc", "latex.py")
sage: logfile = tmp_filename(ext='.log')
sage: DD = DocTestDefaults(optional=set(['sage', 'external']), logfile=logfile)
sage: filename = tmp_filename(ext='.py')
sage: DC = DocTestController(DD, [filename])
sage: DC.run()
Running doctests with ID ...
Using --optional=external,sage
External software to be detected: ...
Doctesting 1 file.
sage -t .../sage/misc/latex.py
[... tests, ... s]
sage -t ....py
[0 tests, 0.00 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: ... seconds
cpu time: ... seconds
cumulative wall time: ... seconds
External software detected for doctesting: ...
Total time for all tests: 0.0 seconds
cpu time: 0.0 seconds
cumulative wall time: 0.0 seconds
External software detected for doctesting:
0
"""
Expand Down

0 comments on commit 7c7e278

Please sign in to comment.