coverage_python_version
Overview
coverage_python_version
is a coverage.py plugin that provides a very
basic means for you to exclude code from your coverage measurements based on
the version of Python that it is executed on.
Usage
- Add
coverage_python_version
toplugins
option in therun
section of yourcoverage.py
configuration. - Use the comment
# pragma: PY2
to notate blocks of code that should be measured under Python 2, and# pragma: PY3
to notate blocks for Python 3.
License
coverage_python_version
is released under the terms of the MIT License.