Sorry, something went wrong.
|
When a doctest.TestResults is unpacked with x, y = result, there is no backward incompatible changes. TestResults still only unpacks the first 2 members (failed and attempted). Example: failed, attempted = result. |
Sorry, something went wrong.
|
I wrote this enhancement while working on #108793 which logs the number of executed tests. |
Sorry, something went wrong.
There was a problem hiding this comment.
Nice feature! A few docs nits:
Sorry, something went wrong.
|
@AlexWaygood: Would you mind to review the updated PR? I updated my PR to address your remarks. I also renamed DocTestRunner.skipped to DocTestRunner.skips for consistency with existing attributes. Sadly, DocTestRunner and TestResults have different attribute names. |
Sorry, something went wrong.
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 skips attribute in What's New/Changelog entry. |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
|
Thanks for the great review @AlexWaygood! I merged my PR. |
Sorry, something went wrong.
📚 Documentation preview 📚: https://cpython-previews--108795.org.readthedocs.build/