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 — doctest: count the number of skipped tests · Issue #108794 · python/cpython

doctest: count the number of skipped tests #108794

New issue
Copy link
New issue
Copy link
Closed
Closed
doctest: count the number of skipped tests#108794
Copy link
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

@vstinner
vstinner
opened on Sep 2, 2023
Issue body actions

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

  • gh-108794: doctest counts skipped tests #108795

Activity

  1. vstinner
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Sep 2, 2023
  2. vstinner
    added a commit that references this issue on Sep 2, 2023

    pythongh-108794: doctest counts skipped tests

    f611d19
  3. AlexWaygood
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Sep 2, 2023
  4. vstinner
    added a commit that references this issue on Sep 2, 2023

    gh-108794: doctest counts skipped tests (#108795)

    4f9b706
  5. serhiy-storchaka commented on Sep 4, 2023

    @serhiy-storchaka
    serhiy-storchaka
    on Sep 4, 2023
    Member
    More actions

    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.

  6. vstinner commented on Sep 4, 2023

    @vstinner
    vstinner
    on Sep 4, 2023
    MemberAuthor
    More actions

    The feature was implemented in 4f9b706. I close the issue.

    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.

    Ok, I will have a look.

  7. vstinner
    closed this as completedon Sep 4, 2023
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

    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-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.