Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

https://img.shields.io/pypi/v/coverage_python_version.svg https://img.shields.io/pypi/l/coverage_python_version.svg

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

  1. Add coverage_python_version to plugins option in the run section of your coverage.py configuration.

  2. 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.

Release files for coverage-python-version 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coverage-python-version 0.2.0
File Size Uploaded
coverage_python_version-0.2.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coverage-python-version 0.2.0
File Interpreter ABI Platform
coverage_python_version-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.2 kB

Release files / coverage_python_version-0.2.0.tar.gz

Download URL coverage_python_version-0.2.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
474e310e1fb500410e103a8b0b931931ce39b2f74df5b5a63e55ff85290645fe
BLAKE2b-256 checksum
How to use checksums
544501131385fe66e3748030bb3dad267dd6b0a48f71b66c5632f99b23d61afb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / coverage_python_version-0.2.0-py2.py3-none-any.whl

Download URL coverage_python_version-0.2.0-py2.py3-none-any.whl
Size 3.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
eff41297bdb5d122c8c5ae265eca1477317bd5a6e157a03cb2966691f4d65678
BLAKE2b-256 checksum
How to use checksums
719f9c6b6ff315142da13bf1f718b90fbbaa64cf1fa34451ade7b07be43cc354
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page