Skip to content

python -m test color print with and without -j #129363

@lczyk

Description

@lczyk

Bug report

Bug description:

./python.exe -m test -j4 prints test results in color. ./python.exe -m test does not. I'm assuming that the -j behaviour is the intended one, as that's the basic instruction in the dev guide.

Having looked at the code, looks like Regrtest::run_tests_sequentially is a tiny bit outdated. I'll submit a PR for consideration in a bit (submitting issue to get an issue number).

Here is an asciinema link demonstrating the behaviour.

CPython versions tested on:

CPython main branch

Operating systems tested on:

macOS

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