Skip to content

Commit

Permalink
Switch to coverage_python_version as suggested by @mgedmin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Mar 4, 2019
1 parent 2b46e09 commit 7d2c121
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .coveragerc
@@ -1,6 +1,7 @@
[run]
branch = True
source = z3c.etestbrowser
plugins = coverage_python_version

[report]
precision = 2
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -14,7 +14,7 @@ matrix:
after_success:
install:
- pip install -U pip setuptools zope.testrunner
- pip install -U coveralls coverage
- pip install -U coveralls coverage coverage-python-version
- pip install -U -e ".[test]"
script:
- coverage run -m zope.testrunner --test-path=src --auto-color
Expand Down
4 changes: 2 additions & 2 deletions src/z3c/etestbrowser/browser.py
Expand Up @@ -75,8 +75,8 @@ def etree(self):
match = RE_CHARSET.match(content_type)
if match is not None:
charset = match.groups()[0]
if six.PY2: # pragma: no cover
content = content.decode(charset) # pragma: no cover
if six.PY2: # pragma: PY2
content = content.decode(charset) # pragma: PY2
self._etree = lxml.etree.HTML(content)

if self._etree is None:
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Expand Up @@ -16,7 +16,9 @@ basepython = python3.7
commands =
coverage run -m zope.testrunner --test-path=src {posargs:--auto-color -vv}
coverage report --show-missing --fail-under=93
deps = coverage
deps =
coverage
coverage-python-version

[testenv:flake8]
basepython = python2.7
Expand Down

0 comments on commit 7d2c121

Please sign in to comment.