Skip to content

Commit

Permalink
Bring back coverage to 100 % when running tox -ecoverage. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Oct 10, 2018
1 parent dd9e139 commit 0d20bcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/zope/viewlet/tests.py
Expand Up @@ -110,13 +110,8 @@ class FakeModule(object):
"""A fake module."""

def __init__(self, dict):
self.__dict = dict
self.__dict__ = dict

def __getattr__(self, name):
try:
return self.__dict[name]
except KeyError:
raise AttributeError(name)

def directivesSetUp(test):
doctestSetUp(test)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -14,7 +14,7 @@ basepython =
python2.7
commands =
coverage run -m zope.testrunner --test-path=src []
coverage report --fail-under=100
coverage report --fail-under=100 --show-missing
deps =
{[testenv]deps}
coverage
Expand Down

0 comments on commit 0d20bcc

Please sign in to comment.