Skip to content

Commit

Permalink
Use full version_info instead of just version_info_minor
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-rojas committed Dec 22, 2024
1 parent acfe0c2 commit 15b14ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def __init__(self, *args, **kwds):
self.total_walltime_skips = 0
self.total_performed_tests = 0
self.total_walltime = 0
if sys.version_info.minor < 13:
if sys.version_info < (3,13):
self._stats = self._name2ft

def _run(self, test, compileflags, out):
Expand Down Expand Up @@ -832,7 +832,7 @@ def compiler(example):
self.optionflags = original_optionflags

# Record and return the number of failures and tries.
if sys.version_info.minor < 13:
if sys.version_info < (3,13):
self._DocTestRunner__record_outcome(test, failures, tries)
else:
self._DocTestRunner__record_outcome(test, failures, tries, walltime_skips)
Expand Down

0 comments on commit 15b14ca

Please sign in to comment.