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
File details
Details for the file coverage_python_version-0.2.0.tar.gz
.
File metadata
- Download URL: coverage_python_version-0.2.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 474e310e1fb500410e103a8b0b931931ce39b2f74df5b5a63e55ff85290645fe |
|
MD5 | 41d21d50a0048e462fd5ba8f6a0846e9 |
|
BLAKE2b-256 | 544501131385fe66e3748030bb3dad267dd6b0a48f71b66c5632f99b23d61afb |
File details
Details for the file coverage_python_version-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: coverage_python_version-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eff41297bdb5d122c8c5ae265eca1477317bd5a6e157a03cb2966691f4d65678 |
|
MD5 | a7bae3d2e4285b5a6e7c8492468b6dfc |
|
BLAKE2b-256 | 719f9c6b6ff315142da13bf1f718b90fbbaa64cf1fa34451ade7b07be43cc354 |