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 — Make Python test suite fail if no tests ran · Issue #98903 · python/cpython

Make Python test suite fail if no tests ran #98903

New issue
Copy link
New issue
Copy link
Closed
Closed
Make Python test suite fail if no tests ran#98903
Copy link
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@vstinner
vstinner
opened on Oct 31, 2022
Issue body actions

When the Python test suite is run with a typo in a test filename or a test method, it displays "NO TEST RUN" but the exit code is a success (exit code 0) and so the mistake can be easily missed. I propose to make the test suite fail with a non-zero exit code to highlight that something unusual happened.

  • PR: gh-98903: Test suite fails with exit code 4 if no tests ran #98904

Activity

  1. vstinner
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Oct 31, 2022
  2. vstinner commented on Oct 31, 2022

    @vstinner
    vstinner
    on Oct 31, 2022
    MemberAuthor
    More actions

    Non-zero exit code should also help automation of running the Python test suite, with git bisect for example.

  3. vstinner commented on Nov 2, 2022

    @vstinner
    vstinner
    on Nov 2, 2022
    MemberAuthor
    More actions

    Fixed by c76db37

  4. vstinner
    closed this as completedon Nov 2, 2022
  5. vstinner
    added a commit that references this issue on Nov 2, 2022

    gh-98903: Test suite fails with exit code 4 if no tests ran (#98904)

    c76db37
  6. vstinner
    added 2 commits that reference this issue on Sep 2, 2023

    pythongh-98903: Test suite fails with exit code 4 if no tests ran (py…

    2cc75b6

    [3.11] gh-108822: Backport libregrtest changes from the main branch (#…

    79f7a4c
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

    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    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.