Commit 4097554f authored by Jason Madden's avatar Jason Madden

Fix coverage numbers for top-level statements in __init__.py and friends. Also...

Fix coverage numbers for top-level statements in __init__.py and friends. Also add some useful platform-specific exclusions.
parent c6a8b9ac
...@@ -70,7 +70,7 @@ something like this:: ...@@ -70,7 +70,7 @@ something like this::
cd greentest cd greentest
PYTHONPATH=.. python testrunner.py --config ../known_failures.py --coverage PYTHONPATH=.. python testrunner.py --config ../known_failures.py --coverage
coverage combine coverage combine
coverage html coverage html -i
<open htmlcov/index.html> <open htmlcov/index.html>
Builds on Travis CI automatically submit updates to `coveralls.io`_. Builds on Travis CI automatically submit updates to `coveralls.io`_.
......
[run] [run]
concurrency = gevent # In coverage 4.0b3, concurrency=gevent is exactly equivalent to
# concurrency=greenlet, except it causes coverage itself to import
# gevent. That messes up our coverage numbers for top-level
# statements, so we use greenlet instead. See https://github.com/gevent/gevent/pull/655#issuecomment-141198002
concurrency = greenlet
parallel = True parallel = True
source = gevent source = gevent
omit = test_* omit = test_*
[report]
# Coverage is run on Linux under cPython 2, so
# exclude branches that are windows specific or pypy/python3
# specific
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
except ImportError:
if __name__ == .__main__.:
if PYPY:
if PY3:
if sys.platform == 'win32':
if mswindows:
if sys.version_info.*>=.*3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment