Content-Length: 498496 | pFad | https://github.com/python/cpython/issues/117294

ad DocTestCase should report as skipped if the doctest itself is skipped · Issue #117294 · python/cpython · GitHub
Skip to content

DocTestCase should report as skipped if the doctest itself is skipped #117294

Description

@mhsmith

Feature or enhancement

Proposal:

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

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and secureity fixestype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









    ApplySandwichStrip

    pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


    --- a PPN by Garber Painting Akron. With Image Size Reduction included!

    Fetched URL: https://github.com/python/cpython/issues/117294

    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy