Skip to content

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

@cmaloney

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

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