Skip to content

Colorize failing test results in python -m test -W #140082

Closed

Description

@cmaloney

Feature or enhancement

Proposal:

Currently when python -m test is run without any colorizing environment variables (ex. FORCE_COLOR) the overall list of tests is colorized but if a test fails and its results are printed the test results are not colored. I'd like to make the output colored both sequential and parallel (-j0) runs.

Before:

Image

After:

Image

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Activity

  1. added a commit that references this issue on Oct 14, 2025
  2. added a commit that references this issue on Oct 29, 2025
  3. added 2 commits that reference this issue on Oct 29, 2025
  4. added a commit that references this issue on Oct 29, 2025
  5. added a commit that references this issue on Oct 29, 2025
  6. added a commit that references this issue on Dec 6, 2025
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

    testsTests in the Lib/test dirtype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions