Skip to main content

A coverage.py plugin to facilitate exclusions based on Python version

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coverage_python_version-0.2.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

coverage_python_version-0.2.0-py2.py3-none-any.whl (3.3 kB view details)

Uploaded Python 2 Python 3

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

Hashes for coverage_python_version-0.2.0.tar.gz
Algorithm Hash digest
SHA256 474e310e1fb500410e103a8b0b931931ce39b2f74df5b5a63e55ff85290645fe
MD5 41d21d50a0048e462fd5ba8f6a0846e9
BLAKE2b-256 544501131385fe66e3748030bb3dad267dd6b0a48f71b66c5632f99b23d61afb

See more details on using hashes here.

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

Hashes for coverage_python_version-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eff41297bdb5d122c8c5ae265eca1477317bd5a6e157a03cb2966691f4d65678
MD5 a7bae3d2e4285b5a6e7c8492468b6dfc
BLAKE2b-256 719f9c6b6ff315142da13bf1f718b90fbbaa64cf1fa34451ade7b07be43cc354

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page