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

Commit

Permalink
Trac #32981: use a faster file to test the doctest framework.
Browse files Browse the repository at this point in the history
There's a slow libgap test in sage.rings.infinity, so it isn't the
best example to use when testing the doctest framework. Instead we now
use sage.misc.repr.
  • Loading branch information
orlitzky committed Dec 8, 2021
1 parent 4b9b07b commit 66c4cc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/doctest/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def cleanup(self, final=True):
sage: from sage.doctest.control import DocTestDefaults, DocTestController
sage: from sage.env import SAGE_SRC
sage: import os
sage: dirname = os.path.join(SAGE_SRC, 'sage', 'rings', 'infinity.py')
sage: dirname = os.path.join(SAGE_SRC, 'sage', 'misc', 'repr.py')
sage: DD = DocTestDefaults()
sage: DC = DocTestController(DD, [dirname])
Expand All @@ -999,7 +999,7 @@ def cleanup(self, final=True):
sage: DC.run()
Running doctests with ID ...
Doctesting 1 file.
sage -t .../rings/infinity.py
sage -t .../misc/repr.py
[... tests, ... s]
----------------------------------------------------------------------
All tests passed!
Expand Down Expand Up @@ -1278,10 +1278,10 @@ def run_doctests(module, options=None):
EXAMPLES::
sage: run_doctests(sage.rings.infinity)
sage: run_doctests(sage.misc.repr)
Running doctests with ID ...
Doctesting 1 file.
sage -t .../sage/rings/infinity.py
sage -t .../sage/misc/repr.py
[... tests, ... s]
----------------------------------------------------------------------
All tests passed!
Expand Down

0 comments on commit 66c4cc8

Please sign in to comment.