You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DocTestCase should report as skipped if the doctest itself is skipped #117294
When a doctest is run through unittest, each docstring is wrapped in a DocTestCase. Currently, if the docstring's examples are all skipped (either with a # doctest: +SKIP comment, or the optionflags argument), the DocTestCase still reports as a test pass. Even in the verbose unittest log, there's no indication that anything has been skipped.
It would make sense for the DocTestCase to report as skipped in this situation.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Activity
gh-117294: Report DocTestCase as skipped if all examples in the docte…
Squashed commit of the following:
Squashed commit of the following:
pythongh-117294: Report DocTestCase as skipped if all examples in the…