Skip to main content

A plugin to facilitate exclusions based on Python version

Project description


coverage_python_version is a 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.


  1. Add coverage_python_version to plugins option in the run section of your 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.


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
coverage_python_version-0.1.0.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None

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