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 gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
cmdline.py [3.14] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139260) 2025-10-07 19:39:06 +02:00
filter.py gh-110918: Fix side effects of regrtest test_match_tests() (#116718) 2024-03-13 14:20:33 +01:00
findtests.py gh-109413: Add more type hints to libregrtest (#126352) 2024-11-04 13:15:57 +03:00
logger.py gh-99242 Ignore error when running regression tests under certain conditions. (GH-121663) 2024-07-13 11:52:08 +02:00
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 gh-109413: Enable mypy's disallow_any_generics setting when checking libregrtest (#127033) 2024-11-19 22:41:59 +03:00
parallel_case.py gh-131152: Remove unused imports from tests (#131153) 2025-03-13 10:55:23 +01:00
pgo.py gh-128690: temporarily do not use test_embed in PGO profile builds (#128771) 2025-01-13 04:02:18 -05:00
refleak.py gh-117174: Fix reference leak and gdb tests (#131095) 2025-03-11 23:17:58 +00:00
result.py gh-127718: Add colour to test.regrtest output (#127719) 2024-12-10 09:44:15 +02:00
results.py gh-127718: Add colour to test.regrtest output (#127719) 2024-12-10 09:44:15 +02:00
run_workers.py gh-109413: Fix libregrtest get_running() (#127153) 2024-11-22 16:56:03 +01:00
runtests.py gh-127933: Add option to run regression tests in parallel (gh-128003) 2025-02-04 17:44:59 -05:00
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 gh-121188: Sanitize invalid XML characters in regrtest (#121195) 2024-07-01 08:30:33 +00:00
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 gh-116103: Prevent error in WindowsLoadTracker.__del__ on permission error (GH-116105) 2024-02-29 11:40:18 +01:00
worker.py [3.14] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140756) 2025-10-29 18:11:24 +00:00