Pytest-restrict

Latest version: v4.6.0

Safety actively analyzes 630130 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

4.0.0

------------------

* Support Python 3.9.
* Move license from BSD to MIT License.
* Rewrite internals to use a marker and fail tests at setup time. This
allows pytest-restrict to work with pytest-xdist.
* Error message has changed to be shorter: "Failed: Test is not a type allowed
by --restrict-types."
* Use Python 3.9's ``pkgutil.resolve_name()``, or its backport in the
`pkgutil_resolve_name
package <https://pypi.org/project/pkgutil_resolve_name/>`__.

Thanks Tom Grainger for the backport.

3.1.0

------------------

* Update Python support to 3.5-3.8, as 3.4 has reached its end of life.
* Converted setuptools metadata to configuration file. This meant removing the
``__version__`` attribute from the package. If you want to inspect the
installed version, use
``importlib.metadata.version("pytest-restrict")``
(`docs <https://docs.python.org/3.8/library/importlib.metadata.html#distribution-versions>`__ /
`backport <https://pypi.org/project/importlib-metadata/>`__).

3.0.0

------------------

* Drop Python 2 support, only Python 3.4+ is supported now.

2.0.0

------------------

* Changed the format of ``--restrict-types`` to take a comma-separated list of
import paths rather than space separated, which fixes the parsing of e.g.
``py.test --restrict-types my.TestCase run/these/test_files.py``.

1.0.0

------------------

* First release on PyPI

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.