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
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.
Bug report
Bug description:
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 passFORCE_COLOR=1
, it seems like Python obediently colorises all traceback.The full list of failing tests on my machine is:
test_signal
andtest_ssl
seem to fail on my machine withoutFORCE_COLOR
being set, however, so those are probably unrelated.Attached is the full output from running
./python.exe -E -m test_traceback -v
(which is too long to paste into this issue body directly).test_traceback.txt
CPython versions tested on:
CPython main branch
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: