summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorFrank Harrison <doublethefish@gmail.com>2020-04-03 13:39:52 +0100
committerGitHub <noreply@github.com>2020-04-03 14:39:52 +0200
commitc1a48e9ec3082664780f30bdb6b7fa7d021fec25 (patch)
tree40750754c17f65548d4c789bf0031325aefc0126 /tox.ini
parent53e5406b9279008f3ae8b5f045e5cd5773771d70 (diff)
downloadpylint-git-c1a48e9ec3082664780f30bdb6b7fa7d021fec25.tar.gz
tox| Uses -m coverage instead of path to site-packages (#3464)
As this was breaking on Fedora, use the coverage module invocation instead of calling the site-package directly.
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini8
1 files changed, 4 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 27acad557..695a2645a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -43,7 +43,7 @@ setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
commands =
- python -Wi {envsitepackagesdir}/coverage run -m pytest {toxinidir}/tests/ {posargs:}
+ python -Wignore -m coverage run -m pytest {toxinidir}/tests/ {posargs:}
; Transform absolute path to relative path
; for compatibility with coveralls.io and fix 'source not available' error.
@@ -74,8 +74,8 @@ deps =
coveralls
skip_install = true
commands =
- python {envsitepackagesdir}/coverage combine
- python {envsitepackagesdir}/coverage report --rcfile={toxinidir}/.coveragerc -m
+ python -m coverage combine
+ python -m coverage report --rcfile={toxinidir}/.coveragerc -m
- coveralls --rcfile={toxinidir}/.coveragerc
changedir = {toxinidir}
@@ -86,7 +86,7 @@ deps =
coverage<5
skip_install = true
commands =
- python {envsitepackagesdir}/coverage erase
+ python -m coverage erase
changedir = {toxinidir}
[testenv:docs]