Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 29, 2025

libregrtest redirects test output to a file as part of its operation.
When unittest checks to see if it should colorize with
isatty(sys.stdout) that fails resulting in no colorizing of the
unittest output.

Update libregrtest to set FORCE_COLOR=1 when redirecting test output
so that unittest will do color printing.
(cherry picked from commit 6ff62ac)

Co-authored-by: Cody Maloney cmaloney@users.noreply.github.com
Co-authored-by: Victor Stinner vstinner@python.org

…honGH-140083)

libregrtest redirects test output to a file as part of its operation.
When `unittest` checks to see if it should colorize with
`isatty(sys.stdout)` that fails resulting in no colorizing of the
unittest output.

Update `libregrtest` to set `FORCE_COLOR=1` when redirecting test output
so that unittest will do color printing.
(cherry picked from commit 6ff62ac)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner vstinner enabled auto-merge (squash) October 29, 2025 12:35
@vstinner vstinner merged commit 62a3b6b into python:3.13 Oct 29, 2025
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants