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


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
coverage_python_version-0.1.0-py2.py3-none-any.whl (3.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Feb 11, 2018
coverage_python_version-0.1.0.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None Feb 11, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page