mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cmdline.py | ||
| filter.py | ||
| findtests.py | ||
| logger.py | ||
| main.py | ||
| mypy.ini | ||
| parallel_case.py | ||
| pgo.py | ||
| refleak.py | ||
| result.py | ||
| results.py | ||
| run_workers.py | ||
| runtests.py | ||
| save_env.py | ||
| setup.py | ||
| single.py | ||
| testresult.py | ||
| tsan.py | ||
| utils.py | ||
| win_utils.py | ||
| worker.py | ||