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.
|
When a doctest.TestResults is unpacked with Example: |
Sorry, something went wrong.
|
I wrote this enhancement while working on #108793 which logs the number of executed tests. |
Sorry, something went wrong.
AlexWaygood
left a comment
There was a problem hiding this comment.
Nice feature! A few docs nits:
Sorry, something went wrong.
Document also DocTestRunner API for statistics, document its attributes.
|
@AlexWaygood: Would you mind to review the updated PR? I updated my PR to address your remarks. I also renamed |
Sorry, something went wrong.
AlexWaygood
left a comment
There was a problem hiding this comment.
A few more minor suggestions:
Sorry, something went wrong.
|
@AlexWaygood: Oh thanks, I addressed your second review. I also mentioned the addition of the |
Sorry, something went wrong.
AlexWaygood
left a comment
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
Thanks for the great review @AlexWaygood! I merged my PR. |
Sorry, something went wrong.
📚 Documentation preview 📚: https://cpython-previews--108795.org.readthedocs.build/