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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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