Skip to content

Commit

Permalink
tox| Uses -m coverage instead of path to site-packages (#3464)
Browse files Browse the repository at this point in the history
As this was breaking on Fedora, use the coverage module invocation
instead of calling the site-package directly.
  • Loading branch information
doublethefish authored Apr 3, 2020
1 parent 53e5406 commit c1a48e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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}

Expand All @@ -86,7 +86,7 @@ deps =
coverage<5
skip_install = true
commands =
python {envsitepackagesdir}/coverage erase
python -m coverage erase
changedir = {toxinidir}

[testenv:docs]
Expand Down

0 comments on commit c1a48e9

Please sign in to comment.