Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Closed
Labels
3.13bugs and security fixestype-featureA feature request or enhancement
@mhsmith

Description

@mhsmith

Feature or enhancement

Proposal:

When a doctest is run throughunittest, each docstring is wrapped in aDocTestCase. Currently, if the docstring's examples are all skipped (either with a# doctest: +SKIP comment, or theoptionflags argument), theDocTestCase 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 theDocTestCase 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 security fixestype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp