summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-03 06:04:53 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-03 06:04:53 -0500
commit5f1067e4ee15b31e65fd0207d6efc00cce1e5608 (patch)
tree318bbce9612334383fbd7e39b4e25927f0ad19c0
parent535060c95b606f0c043e02a4688b4bda6f162996 (diff)
downloadpython-coveragepy-git-5f1067e4ee15b31e65fd0207d6efc00cce1e5608.tar.gz
test: ensure columns=80 for cogging
-rw-r--r--tox.ini6
1 files changed, 5 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 01118451..97aa021f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -31,6 +31,9 @@ setenv =
# For some tests, we need .pyc files written in the current directory,
# so override any local setting.
PYTHONPYCACHEPREFIX=
+ # Cog'ing the --help output depends on the width of the terminal,
+ # so set it explicitly to avoid environmental interference
+ COLUMNS=80
commands =
# Create tests/zipmods.zip
@@ -74,7 +77,8 @@ deps =
-r requirements/lint.pip
setenv =
- LINTABLE = coverage tests doc ci igor.py setup.py __main__.py
+ {[testenv]setenv}
+ LINTABLE=coverage tests doc ci igor.py setup.py __main__.py
commands =
python -m tabnanny {env:LINTABLE}