You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Many tests fail if FORCE_COLOR environment variable is set #117605
If you run FORCE_COLOR=1 make test, many tests fail. The failing tests are mostly due to tests which assert the contents of a traceback not expecting traceback to be colorised, but if you pass FORCE_COLOR=1, it seems like Python obediently colorises all traceback.
I believe tests either need to be happy in the presence of arbitrary color control codes (barfing rainbows...), or our make test aka python -m test aka regrtest runner should explicitly un-configure the community standard not language specific COLOR variables.
Activity
AlexWaygood commentedon Apr 7, 2024
(cc. @pablogsal for colorised tracebacks)
gpshead commentedon Apr 7, 2024
python -Eis defined as only ignoringPYTHON*environment variables. This is a good thing. https://docs.python.org/3/using/cmdline.html#cmdoption-EI believe tests either need to be happy in the presence of arbitrary color control codes (barfing rainbows...), or our
make testakapython -m testaka regrtest runner should explicitly un-configure the community standard not language specific COLOR variables.gpshead commentedon Apr 7, 2024
everyone else seems to be discussing on the other issue #112730, so i suggest others do the same.
AlexWaygood commentedon Apr 10, 2024
PRs to fix this issue have also been linked to #112730, so I'll just close this as a duplicate 👍
(But I insist on claiming credit for raising the issue in the first place ;)