doctest: count the number of skipped tests #108794
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Proposal:
Currently, doctest only counts the number of failured and attempted tests, not the number of skipped tests.
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Activity
pythongh-108794: doctest counts skipped tests
gh-108794: doctest counts skipped tests (#108795)
serhiy-storchaka commentedon Sep 4, 2023
See also #108885.
Different examples in a doctest are not like separate test cases. They are not independent, they run in the specific order, and they cannot be conditionally skipped by CLI options. They are more like sub-tests.
vstinner commentedon Sep 4, 2023
The feature was implemented in 4f9b706. I close the issue.
Ok, I will have a look.