-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
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: |
I wrote this enhancement while working on #108793 which logs the number of executed tests. |
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.
Nice feature! A few docs nits:
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 |
cc @tim-one |
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.
A few more minor suggestions:
Misc/NEWS.d/next/Tests/2023-09-02-05-13-38.gh-issue-108794.tGHXBt.rst
Outdated
Show resolved
Hide resolved
@AlexWaygood: Oh thanks, I addressed your second review. I also mentioned the addition of the |
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.
Thanks!
Co-authored-by: Alex Waygood <[email protected]>
Thanks for the great review @AlexWaygood! I merged my PR. |
📚 Documentation preview 📚: https://cpython-previews--108795.org.readthedocs.build/