py.test plugin to remove stale byte code files.
Project description
py.test plugin to remove stale bytecode
Description
This plugin removes stale bytecode files of the packages under test 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
6.0 (2023-07-07)
Backwards incompatible changes
Drop support for Python 3.5 and 3.6.
Features
Add support for Python 3.9, 3.10, 3.11.
Update tests to pytest >= 6.2.
Other changes
Use Github actions as CI.
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
File details
Details for the file pytest-remove-stale-bytecode-6.0.tar.gz
.
File metadata
- Download URL: pytest-remove-stale-bytecode-6.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4994af33ac963c50881a4c8a91d4eb47d7a50cf5d98560a88f0819ed9c45567d |
|
MD5 | 6c9cce6b10d6df0f8116fe519b10dfb9 |
|
BLAKE2b-256 | 34e214897ba37c9fb6f51b063851bca1ff798ea8fd9c951501aa29b30d84d869 |
File details
Details for the file pytest_remove_stale_bytecode-6.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_remove_stale_bytecode-6.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a66b00ea88f7c9b5d8139e1dce0537bddba5449b8555476f508cd09564cdf9c2 |
|
MD5 | b59bfa80c0062879d70fd1fa9dff6641 |
|
BLAKE2b-256 | 69f64842901515349a46a325ac830ba5b73ae6741de0b82a6d6b4258dc4752d6 |