Uh oh!
There was an error while loading. Please reload this page.
gh-108794: doctest counts skipped tests - #108795
Conversation
* Add 'skipped' attribute to doctest.TestResults. * Rename private DocTestRunner._name2ft attribute to DocTestRunner._stats. * Use f-string for string formatting. * Add some tests.
vstinner
commented
Sep 2, 2023
When a doctest.TestResults is unpacked with Example: |
vstinner
commented
Sep 2, 2023
I wrote this enhancement while working on #108793 which logs the number of executed tests. |
AlexWaygood
left a comment
There was a problem hiding this comment.
Nice feature! A few docs nits:
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Document also DocTestRunner API for statistics, document its attributes.
vstinner
commented
Sep 2, 2023
@AlexWaygood: Would you mind to review the updated PR? I updated my PR to address your remarks. I also renamed |
vstinner
commented
Sep 2, 2023
cc @tim-one |
AlexWaygood
left a comment
There was a problem hiding this comment.
A few more minor suggestions:
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
vstinner
commented
Sep 2, 2023
@AlexWaygood: Oh thanks, I addressed your second review. I also mentioned the addition of the |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
vstinner
commented
Sep 2, 2023
Thanks for the great review @AlexWaygood! I merged my PR. |
📚 Documentation preview 📚: https://cpython-previews--108795.org.readthedocs.build/