Pytest-rerunfailures

Latest version: v14.0

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

Scan your dependencies

Page 2 of 5

11.0

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

Breaking changes
++++++++++++++++

- Drop support for Python 3.6.

- Drop support for pytest < 6.

Bug fixes
+++++++++

- Fix crash when pytest-xdist is installed but disabled.
(Thanks to `mgorny <https://github.com/mgorny>`_ for the PR.)

- Fix crash when xfail(strict=True) mark is used with --rerun-only flag.

Features
++++++++

- Added option ``--rerun-except`` to rerun failed tests those are other than the mentioned Error.

- Add support for Python 3.11.

- Add support for pytest 7.0, 7.1, 7.2.

10.2

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

Features
++++++++

- Allow recovery from crashed tests with pytest-xdist.
- Add support for Python 3.10 (as of Python 3.10.rc2).
(Thanks to `hugovk <https://github.com/hugovk>`_ for the PR.)

10.1

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

Features
++++++++

- Allows using a ``str`` as condition for
``pytest.mark.flaky(condition)``
which gets evaluated dynamically similarly to
``pytest.mark.skipif(condition)``.
(`162 <https://github.com/pytest-dev/pytest-rerunfailures/pull/162>`_
provided by `15klli <https://github.com/15klli>`_)

10.0

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

Backwards incompatible changes
++++++++++++++++++++++++++++++

- Drop support for Python 3.5.

- Drop support for pytest < 5.3.

Features
++++++++

- Add ``condition`` keyword argument to the re-run marker.
(Thanks to `BeyondEvil`_ for the PR.)

- Add support for Python 3.9.
(Thanks to `digitronik`_ for the PR.)

- Add support for pytest 6.3.
(Thanks to `bluetech`_ for the PR.)

- Add compatibility with ``pytest-xdist >= 2.0``.
(Thanks to `bluetech`_ for the PR.)

Other changes
+++++++++++++

- Check for the resultlog by feature and not by version as pytest master does
not provide a consistent version.

.. _BeyondEvil: https://github.com/BeyondEvil
.. _digitronik: https://github.com/digitronik
.. _bluetech: https://github.com/bluetech

9.1.1

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

Compatibility fix.
++++++++++++++++++

- Ignore ``--result-log`` command line option when used together with ``pytest
>= 6.1.0``, as it was removed there. This is a quick fix, use an older
version of pytest, if you want to keep this feature for now.
(Thanks to `ntessore`_ for the PR)

- Support up to pytest 6.1.0.

.. _ntessore: https://github.com/ntessore

9.1

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

Features
++++++++

- Add a new flag ``--only-rerun`` to allow for users to rerun only certain
errors.

Other changes
+++++++++++++

- Drop dependency on ``mock``.

- Add support for pre-commit and add a linting tox target.
(`117 <https://github.com/pytest-dev/pytest-rerunfailures/pull/117>`_)
(PR from `gnikonorov`_)

.. _gnikonorov: https://github.com/gnikonorov

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.