Skip to content

Commit 660e8ca

Browse files
committed
sage/doctest/control.py: deprecate second_on_modern_computer()
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.
1 parent cf55b38 commit 660e8ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sage/doctest/control.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ def second_on_modern_computer(self):
639639
sage: DC = DocTestController(DocTestDefaults(), [])
640640
sage: DC.second_on_modern_computer() # not tested
641641
"""
642+
from sage.misc.superseded import deprecation
643+
deprecation(32981, "this method is no longer used by the sage library and will eventually be removed")
644+
642645
if len(self.stats) == 0:
643646
raise RuntimeError('no stored timings available')
644647
success = []

0 commit comments

Comments
 (0)