-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix doctesting with Python 3.13 #39147
Conversation
Documentation preview for this PR (built with commit 15b14ca; changes) is ready! 🎉 |
@@ -931,7 +936,7 @@ def summarize(self, verbose=None): | |||
sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() | |||
sage: import doctest, sys, os | |||
sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) | |||
sage: DTR._name2ft['sage.doctest.forker'] = (1,120) | |||
sage: DTR._stats['sage.doctest.forker'] = (1,120) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sage: DTR._stats['sage.doctest.forker'] = (1,120) | |
sage: DTR._stats['sage.doctest.forker'] = (1,120,0) |
It seems the difference between _name2ft
and _stats
is the former is pairs but the latter is triples.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's the point.
I think the doctest can be left as is because it's just mocking the result here… otherwise you'll need to do a version check.
I suggest adding an explanation why you're doing that here, so people coming across this in the future won't need to git blame
the code.
Adapt to upstream changes in doctest [1]: - _name2ft was renamed to _stats - it now records the number of skipped tests [1] python/cpython@4f9b706
cab66d8
to
15b14ca
Compare
sagemathgh-39147: Fix doctesting with Python 3.13 Adapt to upstream changes in doctest [1]: - _name2ft was renamed to _stats - it now records the number of skipped tests [1] python/cpython@4f9b706c6f5d4422a398146bfd0 11daedaef1851 URL: sagemath#39147 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Gonzalo Tornaría, user202729
sagemathgh-39188: Declare Python 3.13 as supported in sagelib ### ⌛ Dependencies - sagemath#39145 - sagemath#39147 - sagemath#39182 - sagemath#39184 - sagemath#39185 - sagemath#39187 - sagemath#39201 URL: sagemath#39188 Reported by: Antonio Rojas Reviewer(s): Tobias Diez
sagemathgh-39147: Fix doctesting with Python 3.13 Adapt to upstream changes in doctest [1]: - _name2ft was renamed to _stats - it now records the number of skipped tests [1] python/cpython@4f9b706c6f5d4422a398146bfd0 11daedaef1851 URL: sagemath#39147 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Gonzalo Tornaría, user202729
sagemathgh-39188: Declare Python 3.13 as supported in sagelib ### ⌛ Dependencies - sagemath#39145 - sagemath#39147 - sagemath#39182 - sagemath#39184 - sagemath#39185 - sagemath#39187 - sagemath#39201 URL: sagemath#39188 Reported by: Antonio Rojas Reviewer(s): Tobias Diez
sagemathgh-39147: Fix doctesting with Python 3.13 Adapt to upstream changes in doctest [1]: - _name2ft was renamed to _stats - it now records the number of skipped tests [1] python/cpython@4f9b706c6f5d4422a398146bfd0 11daedaef1851 URL: sagemath#39147 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Gonzalo Tornaría, user202729
sagemathgh-39188: Declare Python 3.13 as supported in sagelib ### ⌛ Dependencies - sagemath#39145 - sagemath#39147 - sagemath#39182 - sagemath#39184 - sagemath#39185 - sagemath#39187 - sagemath#39201 URL: sagemath#39188 Reported by: Antonio Rojas Reviewer(s): Tobias Diez
sagemathgh-39147: Fix doctesting with Python 3.13 Adapt to upstream changes in doctest [1]: - _name2ft was renamed to _stats - it now records the number of skipped tests [1] python/cpython@4f9b706c6f5d4422a398146bfd0 11daedaef1851 URL: sagemath#39147 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Gonzalo Tornaría, user202729
sagemathgh-39188: Declare Python 3.13 as supported in sagelib ### ⌛ Dependencies - sagemath#39145 - sagemath#39147 - sagemath#39182 - sagemath#39184 - sagemath#39185 - sagemath#39187 - sagemath#39201 URL: sagemath#39188 Reported by: Antonio Rojas Reviewer(s): Tobias Diez
sagemathgh-39147: Fix doctesting with Python 3.13 Adapt to upstream changes in doctest [1]: - _name2ft was renamed to _stats - it now records the number of skipped tests [1] python/cpython@4f9b706c6f5d4422a398146bfd0 11daedaef1851 URL: sagemath#39147 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Gonzalo Tornaría, user202729
sagemathgh-39188: Declare Python 3.13 as supported in sagelib ### ⌛ Dependencies - sagemath#39145 - sagemath#39147 - sagemath#39182 - sagemath#39184 - sagemath#39185 - sagemath#39187 - sagemath#39201 URL: sagemath#39188 Reported by: Antonio Rojas Reviewer(s): Tobias Diez
sagemathgh-39188: Declare Python 3.13 as supported in sagelib ### ⌛ Dependencies - sagemath#39145 - sagemath#39147 - sagemath#39182 - sagemath#39184 - sagemath#39185 - sagemath#39187 - sagemath#39201 URL: sagemath#39188 Reported by: Antonio Rojas Reviewer(s): Tobias Diez
Adapt to upstream changes in doctest [1]:
[1] python/cpython@4f9b706