Skip to content

Commit

Permalink
sage/doctest/control.py: deprecate second_on_modern_computer()
Browse files Browse the repository at this point in the history
This method of the DocTestController class is no longer used in the
sage library, but technically, it was "public," so we deprecate it for
later removal.
  • Loading branch information
orlitzky committed Oct 20, 2024
1 parent cf55b38 commit 660e8ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sage/doctest/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,9 @@ def second_on_modern_computer(self):
sage: DC = DocTestController(DocTestDefaults(), [])
sage: DC.second_on_modern_computer() # not tested
"""
from sage.misc.superseded import deprecation
deprecation(32981, "this method is no longer used by the sage library and will eventually be removed")

Check warning on line 643 in src/sage/doctest/control.py

View check run for this annotation

Codecov / codecov/patch

src/sage/doctest/control.py#L642-L643

Added lines #L642 - L643 were not covered by tests

if len(self.stats) == 0:
raise RuntimeError('no stored timings available')
success = []
Expand Down

0 comments on commit 660e8ca

Please sign in to comment.