Skip to content

doctest: count the number of skipped tests #108794

Description

@vstinner

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

Activity

  1. added a commit that references this issue on Sep 2, 2023
  2. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Sep 2, 2023
  3. added a commit that references this issue on Sep 2, 2023
  4. serhiy-storchaka commented on Sep 4, 2023

    @serhiy-storchaka
    Member

    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.

  5. vstinner commented on Sep 4, 2023

    @vstinner
    MemberAuthor

    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.

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/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions