A coverage.py plugin to facilitate exclusions based on Python version
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.
- Add coverage_python_version to plugins option in the run section of your coverage.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.
coverage_python_version is released under the terms of the MIT License.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|coverage_python_version-0.1.0-py2.py3-none-any.whl (3.9 kB) Copy SHA256 hash SHA256||Wheel||py2.py3||Feb 11, 2018|
|coverage_python_version-0.1.0.tar.gz (2.9 kB) Copy SHA256 hash SHA256||Source||None||Feb 11, 2018|