GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DocTestCase should report as skipped if the doctest itself is skipped · Issue #117294 · python/cpython

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

New issue
Copy link
New issue
Copy link
Closed
#117297
Closed
DocTestCase should report as skipped if the doctest itself is skipped#117294
#117297
Copy link
Labels
3.13only security fixesonly security fixestype-featureA feature request or enhancementA feature request or enhancement

Description

@mhsmith
mhsmith
opened on Mar 27, 2024
Issue body actions

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

  • gh-117294: Report DocTestCase as skipped if all examples in the doctest are skipped #117297

Activity

  1. mhsmith
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Mar 27, 2024
  2. serhiy-storchaka
    closed this as completedin #117297on Mar 28, 2024
  3. serhiy-storchaka
    added a commit that references this issue on Mar 28, 2024

    gh-117294: Report DocTestCase as skipped if all examples in the docte…

    29829b5
  4. serhiy-storchaka
    added
    3.13only security fixesonly security fixes
    on Mar 28, 2024
  5. NGRsoftlab
    added 2 commits that reference this issue on Apr 2, 2024

    Squashed commit of the following:

    1b5fe4c

    Squashed commit of the following:

    a016a54
  6. diegorusso
    added a commit that references this issue on Apr 17, 2024

    pythongh-117294: Report DocTestCase as skipped if all examples in the…

    d6f18f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only security fixesonly security fixestype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.