cpython/Lib/test/libregrtest
Miss Islington (bot) 0779ef9a63
[3.14] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140756)
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 18:11:24 +00:00
..
__init__.py
cmdline.py [3.14] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139260) 2025-10-07 19:39:06 +02:00
filter.py
findtests.py
logger.py
main.py [3.14] gh-137242: Allow Android testbed to take all Python command-line options (GH-138805) (#139637) 2025-10-06 15:15:06 +03:00
mypy.ini
parallel_case.py gh-131152: Remove unused imports from tests (#131153) 2025-03-13 10:55:23 +01:00
pgo.py
refleak.py gh-117174: Fix reference leak and gdb tests (#131095) 2025-03-11 23:17:58 +00:00
result.py
results.py
run_workers.py
runtests.py
save_env.py [3.14] gh-140482: Preserve and restore stty echo as a test environment (GH-140519) (#140562) 2025-10-24 19:24:17 +00:00
setup.py [3.14] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140756) 2025-10-29 18:11:24 +00:00
single.py [3.14] gh-135489: Show verbose output for failing tests during PGO profiling step with --enable-optimizations (#135599) 2025-06-17 01:37:39 -04:00
testresult.py
tsan.py gh-127945: add test_ctypes to free-threading TSAN CI (#132727) 2025-04-21 22:56:56 +05:30
utils.py [3.14] gh-137341: Remove more word duplications (GH-137342) (#137346) 2025-08-03 21:26:16 +03:00
win_utils.py
worker.py [3.14] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140756) 2025-10-29 18:11:24 +00:00