This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description

py.test plugin to remove stale bytecode

This plugin removes all stale bytecode files before running tests. This makes sure that Python modules – whose source was deleted – are not accidentally visible to the test runner anymore due to a left-over bytecode file (*.pyc, *.pyo).

Usage

To use this plugin you just have to install it, so it is accessible by the pytest you are using:

  • If you are using buildout, add pytest-remove-stale-bytecode to the buildout section of your pytest runner.
  • If you are using pip add it to your test requirements.

Per default, there is no output generated, but if pytest is invoked in verbose mode (-v), information about the deleted files is printed.

This plugin was inspired by a feature of zope.testrunner.

CHANGES

3.0 (2017-05-12)

  • Add support for Python 3.6, PyPy2 and PyPy3.
  • Do not show output by default anymore. It can be turned on with -v option.
  • Change the license from ZPL to MIT.

2.1 (2015-10-01)

  • Also remove bytecode files under Python 3, that end with -PYTEST.

2.0 (2015-10-01)

  • Add support for removing byte code files under Python 3.

1.0 (2014-10-29)

  • initial release
Release History

Release History

3.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pytest_remove_stale_bytecode-3.0-py2.py3-none-any.whl (4.7 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel May 12, 2017
pytest-remove-stale-bytecode-3.0.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source May 12, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting