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 gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
cmdline.py [3.13] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139261) 2025-09-23 14:32:19 +00:00
filter.py gh-110918: Fix side effects of regrtest test_match_tests() (#116718) 2024-03-13 14:20:33 +01:00
findtests.py [3.13] gh-109413: Add more type hints to libregrtest (GH-126352) (#126388) 2025-01-08 09:00:46 +00:00
logger.py [3.13] gh-99242 Ignore error when running regression tests under certain conditions. (GH-121663) (GH-121669) 2024-07-22 14:53:46 +02:00
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 [3.13] gh-109413: Enable mypy's disallow_any_generics setting when checking libregrtest (GH-127033) (#127034) 2024-11-24 08:40:14 +00:00
pgo.py [3.13] gh-129660: Do not use test_embed in PGO profile builds (#129662) 2025-02-05 12:22:30 +01:00
refleak.py [3.13] gh-117174: Fix reference leak and gdb tests (GH-131095) (#131120) 2025-03-11 23:43:07 +00:00
result.py [3.13] gh-109413: Add more type hints to libregrtest (GH-126352) (#126388) 2025-01-08 09:00:46 +00:00
results.py [3.13] gh-109413: Add more type hints to libregrtest (GH-126352) (#126388) 2025-01-08 09:00:46 +00:00
run_workers.py [3.13] gh-109413: Fix libregrtest get_running() (GH-127153) (#127157) 2024-11-22 16:34:07 +00:00
runtests.py [3.13] gh-109413: Add more type hints to libregrtest (GH-126352) (#126388) 2025-01-08 09:00:46 +00:00
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 [3.13] gh-121188: Sanitize invalid XML characters in regrtest (GH-121195) (#121204) 2024-07-01 08:55:38 +00:00
tsan.py [3.13] gh-117657: Enable test_opcache under TSAN (GH-129831) (GH-130597) 2025-02-26 13:59:59 -05:00
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 gh-116103: Prevent error in WindowsLoadTracker.__del__ on permission error (GH-116105) 2024-02-29 11:40:18 +01:00
worker.py [3.13] gh-140082: Forward colorizing from libregrtest to unittest (GH-140083) (#140755) 2025-10-29 12:55:54 +00:00