Skip to content

Commit

Permalink
Set PYTHON_COLORS=0 to disable coloured CPython tracebacks globally i…
Browse files Browse the repository at this point in the history
…n tox.ini
  • Loading branch information
hugovk committed Jan 26, 2024
1 parent 5e85497 commit 74bff83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
COVERAGE_IGOR_VERBOSE: 1
FORCE_COLOR: 1 # Get colored pytest output
PYTHON_COLORS: 0 # But not colored CPython output

permissions:
contents: read
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ setenv =
PYTHONPYCACHEPREFIX=
# If we ever need a stronger way to suppress warnings:
#PYTHONWARNINGS=ignore:removed in Python 3.14; use ast.Constant:DeprecationWarning
# Disable CPython's color output
PYTHON_COLORS=0

# $set_env.py: COVERAGE_PIP_ARGS - Extra arguments for `pip install`
# `--no-build-isolation` will let tox work with no network.
Expand Down

0 comments on commit 74bff83

Please sign in to comment.