A coverage.py plugin to facilitate exclusions based on Python version
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for coverage_python_version-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf0eda1bc241abc6b33b6bfce25ae298d84da8b7fd722a19cfccd2f2a1946201 |
|
MD5 | ee7dc3d79a7eb318584b76de0b5a8879 |
|
BLAKE2b-256 | 9afbd07967c56a0d3862a52d1dd69a2c6c1c0fd3201474228efeb371fc088022 |
Close
Hashes for coverage_python_version-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b571c55e6573edadf056f04db7887499526b82dbe47bfd47402f7ce0d02daf73 |
|
MD5 | f5883041e5be2725e28e9da3fd002874 |
|
BLAKE2b-256 | 97e151abd4af5379553bd82fc893b8c167b7c332e59f909af1bc708aa354ea07 |