py.test plugin to remove stale byte code files.
Project description
py.test plugin to remove stale bytecode
Description
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
5.0.1 (2020-03-04)
Calling pytest –help no longer breaks when this plug-in is installed.
5.0 (2020-01-17)
Backwards incompatible changes
Drop support for Python 2.7 and PyPy2.
Features
Add support for Python 3.8.
Migrate to Github.
Improve for new pytest versions.
Bug fixes
Fix problems when running tests jobs in parallel. (#2)
4.0 (2019-09-13)
Backwards incompatible changes
Drop support for Python 3.4.
Features
Make work with py.test >=3.10 again.
Add support for Python 3.7.
3.0.1 (2019-03-21)
This plug-in only works in py.test < version 3.10. It is broken since the merge of pytest-dev/pytest#4250
Drop support for Python 3.3.
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
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
Built Distribution
Hashes for pytest-remove-stale-bytecode-5.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d06be0417fcc4fd9b07d7ab4739b5748a85a98a5ee44d0b380f0f36da4f9707 |
|
MD5 | e14a4dbdfb75e42cb7184affcb46fcbf |
|
BLAKE2b-256 | 8ee1a9b76afa7596959f7e022cca59473ccd54a1c61574e7c3710ae73cca301b |
Hashes for pytest_remove_stale_bytecode-5.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4acb80da14987c1f5dedc0eccf7859f1a423e72089e143e878ce408f50eafdbe |
|
MD5 | eff3d7f56bd6ed110b5acd3398277d67 |
|
BLAKE2b-256 | e478e2d90cfa9319dcec43a8b9bfc1e73a2c75eb73d1f2666e353a75b0d05dce |