A coverage.py plugin to facilitate exclusions based on Python version
Project Links
Meta
Author: Jason Simeone
Classifiers
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Programming Language
- Python
- Python :: 2.7
- Python :: 3.4
- Python :: 3.5
- Python :: 3.6
- Python :: 3.7
- Python :: 3.8
- Python :: Implementation :: CPython
- Python :: Implementation :: PyPy
Topic
- Software Development
- Software Development :: Testing
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 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.
License
coverage_python_version is released under the terms of the MIT License.
Wheel compatibility matrix
Files in release
Extras:
None
Dependencies:
coverage
(<6,>=4.5)