cpython/Lib/test/libregrtest
Miss Islington (bot) 62a3b6b0d9
[3.13] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140755)
gh-140082: Forward colorizing from libregrtest to unittest (GH-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 6ff62ac4fb)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-29 12:55:54 +00:00
..
__init__.py
cmdline.py [3.13] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139261) 2025-09-23 14:32:19 +00:00
filter.py
findtests.py
logger.py
main.py [3.13] gh-137242: Allow Android testbed to take all Python command-line options (GH-138805) (#139638) 2025-10-06 06:25:58 +00:00
mypy.ini
pgo.py
refleak.py
result.py
results.py
run_workers.py
runtests.py
save_env.py [3.13] gh-140482: Preserve and restore stty echo as a test environment (GH-140519) (#140563) 2025-10-24 18:30:59 +00:00
setup.py [3.13] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140755) 2025-10-29 12:55:54 +00:00
single.py [3.13] gh-135489: Show verbose output for failing tests during PGO profiling step with --enable-optimizations (#135600) 2025-06-17 01:47:27 -04:00
testresult.py
tsan.py
utils.py [3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347) 2025-08-03 17:24:26 +00:00
win_utils.py
worker.py [3.13] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140755) 2025-10-29 12:55:54 +00:00