Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
pytest-remove-stale-bytecode
Advanced tools
.. image:: https://img.shields.io/pypi/v/pytest-remove-stale-bytecode.svg :target: https://pypi.org/project/pytest-remove-stale-bytecode/
.. image:: https://img.shields.io/pypi/pyversions/pytest-remove-stale-bytecode.svg :target: https://pypi.org/project/pytest-remove-stale-bytecode/
.. image:: https://github.com/gocept/pytest-remove-stale-bytecode/workflows/tests/badge.svg :target: https://github.com/gocept/pytest-remove-stale-bytecode/actions?query=workflow%3Atests
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
).
.. caution::
This plug-in only looks into the packages you are testing. If there is a stale bytecode file in another package it does not remove it.
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
_.
.. _zope.testrunner
: https://pypi.python.org/pypi/zope.testrunner
Add support for Python 3.9, 3.10, 3.11.
Update tests to pytest >= 6.2
.
pytest --help
no longer breaks when this plug-in is installed.Add support for Python 3.8.
Migrate to Github.
Improve for new pytest versions.
#2 <https://github.com/gocept/pytest-remove-stale-bytecode/issues/2>
_)Make work with py.test >=3.10 again.
Add support for Python 3.7.
This plug-in only works in py.test < version 3.10.
It is broken since the merge of
pytest-dev/pytest#4250 <https://github.com/pytest-dev/pytest/pull/4250>
_
Drop support for Python 3.3.
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.
-PYTEST
.FAQs
py.test plugin to remove stale byte code files.
We found that pytest-remove-stale-bytecode demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.