Skip to content

Commit

Permalink
Use coverage-python-version to improve coverage by version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 27, 2019
1 parent 69bc978 commit 2850588
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[run]
source = zope.tales
plugins = coverage_python_version
omit =
*/flycheck_*py

Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ matrix:
dist: xenial
install:
- pip install -U pip setuptools
- pip install -U coverage coveralls
- pip install -U coverage coverage-python-version coveralls
- pip install -U -e .[test]
script:
- coverage run -m zope.testrunner --test-path=src
Expand Down
3 changes: 1 addition & 2 deletions src/zope/tales/tales.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@

try:
from html import escape
except ImportError: # pragma: no cover
# PY2
except ImportError: # pragma: PY2
from cgi import escape

from zope.interface import implementer
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ commands =
deps =
{[testenv]deps}
coverage
coverage-python-version

[testenv:docs]
basepython =
Expand Down

0 comments on commit 2850588

Please sign in to comment.