Skip to content

⬆️ deps: Update dependency pytest-rerunfailures to v16 - #48

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pytest-rerunfailures-16.x
Open

⬆️ deps: Update dependency pytest-rerunfailures to v16#48
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pytest-rerunfailures-16.x

Conversation

@renovate

@renovate renovate Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
pytest-rerunfailures ^10.2^16.0.0 age confidence

Release Notes

pytest-dev/pytest-rerunfailures (pytest-rerunfailures)

v16.6.1

Compare Source

Bug Fixes
+++++++++

  • Ensure teardown reports are passed to pytest_runtest_logreport for rerun
    attempts. (#&#8203;237 <https://github.com/pytest-dev/pytest-rerunfailures/issues/237>_)
  • Prevent superseded built-in subtest failures from remaining in the final test
    result when rerunning tests with pytest-xdist. (#&#8203;350 <https://github.com/pytest-dev/pytest-rerunfailures/issues/350>_)
  • Restore module, class, and session scoped fixture teardown when a flaky
    marker condition is falsy. (#&#8203;351 <https://github.com/pytest-dev/pytest-rerunfailures/issues/351>_)
  • Restore module, class, and session scoped fixture teardown when an error
    raised during teardown rules out a re-run. (#&#8203;356 <https://github.com/pytest-dev/pytest-rerunfailures/issues/356>_)
  • Keep module, class, and session scoped fixtures alive across re-runs of a
    test whose call phase failed through subtests only. (#&#8203;357 <https://github.com/pytest-dev/pytest-rerunfailures/issues/357>_)
  • Authenticate xdist StatusDB connections with a per-session token. (#&#8203;358 <https://github.com/pytest-dev/pytest-rerunfailures/issues/358>_)
  • Ensure negative rerun counts do not skip the initial test execution. (#&#8203;359 <https://github.com/pytest-dev/pytest-rerunfailures/issues/359>_)

Misc
++++

  • Replace deprecated Config.getvalue() calls with Config.getoption().
    (#&#8203;345 <https://github.com/pytest-dev/pytest-rerunfailures/issues/345>_)

v16.6

Compare Source

Features
++++++++

  • Add a repeatable --rerun-exclude-path option to exclude test files or
    directories from reruns. (#&#8203;232 <https://github.com/pytest-dev/pytest-rerunfailures/issues/232>_)

Bug Fixes
+++++++++

  • Fix a regression in version 16.5 which made --pdb unusable even when no
    reruns were configured. (#&#8203;342 <https://github.com/pytest-dev/pytest-rerunfailures/issues/342>_)

v16.5

Compare Source

Features
++++++++

  • Add --max-suite-reruns option to cap the total number of reruns across
    the entire test suite. Once the limit is reached, no further reruns occur
    regardless of per-test --reruns or @pytest.mark.flaky settings.
    (#&#8203;298 <https://github.com/pytest-dev/pytest-rerunfailures/issues/298>_)

Bug Fixes
+++++++++

  • Create a new test class instance for each rerun. Previously the instance of
    the failed attempt was reused, so state stored on self leaked into the
    rerun and broke test isolation. Fixtures cached at class scope or higher are
    still not re-executed. (#&#8203;268 <https://github.com/pytest-dev/pytest-rerunfailures/issues/268>_)
  • Prevent a rerun when a fixture teardown raises an error matching
    --rerun-except. Previously only the error from the current test stage was
    considered, so a --rerun-except-matching error raised during teardown was
    ignored and the test was rerun anyway. (#&#8203;270 <https://github.com/pytest-dev/pytest-rerunfailures/issues/270>_)

v16.4

Compare Source

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

  • Drop support for pytest 8.1. Minimum pytest version is now 8.2.

Features
++++++++

  • Add support for pytest 9.1.

  • Rerun tests with failed subtests. This feature is only available on pytest 9.0
    and later. The pytest-subtests plugin is not supported.
    Fixes #&#8203;315 <https://github.com/pytest-dev/pytest-rerunfailures/issues/315>_.

  • Add --reruns-delay-backoff-factor option (and the matching
    reruns_delay_backoff_factor marker kwarg / ini setting) to grow the rerun
    delay after each attempt for an exponential backoff. The delay before the
    n-th re-run is reruns_delay * reruns_delay_backoff_factor ** (n - 1).
    The default factor is 1.0, so existing behaviour (a constant delay) is
    unchanged.

v16.3

Compare Source

Features
++++++++

  • Add --reruns-mode option (strict or append). With append,
    marker reruns and the global --reruns / reruns ini setting are summed
    instead of the marker taking strict priority. Default is strict so
    existing behaviour is unchanged.
    Fixes #&#8203;321 <https://github.com/pytest-dev/pytest-rerunfailures/issues/321>_.

  • Add --rerun-show-tracebacks option to display tracebacks from failed
    attempts that were retried, including tests that eventually passed. The
    rerun summary section is emitted automatically when the flag is set, so
    -rR is no longer required to see the tracebacks.
    Fixes #&#8203;156 <https://github.com/pytest-dev/pytest-rerunfailures/issues/156>_.

v16.2

Compare Source

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

  • Drop support for pytest 8.0. Minimum pytest version is now 8.1.

Features
++++++++

  • Add support for pytest 9.0.

Bug fixes
+++++++++

  • Fix missing teardown for session and module scoped fixtures when fixture teardown fails.
    Fixes #&#8203;314 <https://github.com/pytest-dev/pytest-rerunfailures/issues/314>_.

  • Clear fixture finalizers when removing cached results from failed fixtures
    to fix compatibility with pytest >= 9, which asserts that _finalizers is
    empty before executing a fixture.
    Fixes #&#8203;323 <https://github.com/pytest-dev/pytest-rerunfailures/issues/323>_.

  • Accept exception classes (not only regex strings) in the only_rerun and
    rerun_except marker keyword arguments instead of crashing with an
    internal error.
    Fixes #&#8203;275 <https://github.com/pytest-dev/pytest-rerunfailures/issues/275>_.

v16.1

Compare Source

  • Drop support for Python 3.9.

  • Changed "localhost" to "127.0.0.1" to avoid bad hostname resolution.

  • Added --force-reruns to override rerun count globally.
    Fixes #&#8203;306 <https://github.com/pytest-dev/pytest-rerunfailures/issues/306>_.

v16.0.1

Compare Source

  • Reverted the ability to access error attributes because of an incompatibility
    with pytest-xdist <https://github.com/pytest-dev/pytest-xdist/issues/843>.
    Fixes #&#8203;302 <https://github.com/pytest-dev/pytest-rerunfailures/issues/302>
    ,
    #&#8203;303 <https://github.com/pytest-dev/pytest-rerunfailures/issues/303>_.

v16.0

Compare Source

  • Reverted the ability to access error attributes because of an incompatibility
    with pytest-xdist <https://github.com/pytest-dev/pytest-xdist/issues/843>.
    Fixes #&#8203;302 <https://github.com/pytest-dev/pytest-rerunfailures/issues/302>
    ,
    #&#8203;303 <https://github.com/pytest-dev/pytest-rerunfailures/issues/303>_.

v15.1

Compare Source

Bug fixes
+++++++++

  • Fix --fail-on-flaky option to fail the test run with custom exit code
    only when reruns are detected.
    (#&#8203;287 <https://github.com/pytest-dev/pytest-rerunfailures/issues/287>_)

  • Switched to using the SPDX license identifier in the project metadata.

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

  • Change exception filtering logic to match AssertionError raised via
    assert statements when filtering by "AssertionError".
    (#&#8203;292 <https://github.com/pytest-dev/pytest-rerunfailures/issues/292>_)

v15.0

Compare Source

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

  • Drop support for Python 3.8.

  • Drop support for pytest < 7.4.

Features
++++++++

  • Fix compatibility with pytest 8.2.
    (#&#8203;267 <https://github.com/pytest-dev/pytest-rerunfailures/issues/267>_)

  • Add support for pytest 8.2, 8.3.

  • Add --fail-on-flaky option to fail the test run with custom exit code
    when test passed on rerun.

v14.0

Compare Source

Bug fixes
+++++++++

  • Fix missing teardown for non-function scoped fixtures when using only_rerun or rerun_except queries.
    (#&#8203;234 <https://github.com/pytest-dev/pytest-rerunfailures/issues/234>)
    and (#&#8203;241 <https://github.com/pytest-dev/pytest-rerunfailures/issues/241>
    )

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

  • Drop support for Python 3.7.

  • Drop support for pytest < 7.2.

Features
++++++++

  • Add support for pytest 8.0, 8.1.

v13.0

Compare Source

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

  • Drop support for pytest < 7.0.

Features
++++++++

  • Add support for Python 3.12.

Bug fixes
+++++++++

  • Fix crashitem names mismatch between client and server.
    (#&#8203;172 <https://github.com/pytest-dev/pytest-rerunfailures/issues/172>_)

  • Fix crash when setup fails with --rerun-except flag.
    (#&#8203;230 <https://github.com/pytest-dev/pytest-rerunfailures/issues/230>_)

v12.0

Compare Source

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

  • Drop support for pytest < 6.2.

Features
++++++++

  • Add only_rerun and rerun_except arguments to @pytest.mark.flaky marker.

  • Add support for pytest 7.3, 7.4.

Bug fixes
+++++++++

  • Failures are now rerun only if they match at least one --only-rerun
    pattern (if given) and none of the --rerun-except patterns. Previously,
    using both --only-rerun and --rerun-except together could cause
    failures to be rerun even if they did not match any --only-rerun
    pattern, and when using multiple --rerun-except patterns, all failures
    would be rerun unless they matched every pattern.
    (#&#8203;225 <https://github.com/pytest-dev/pytest-rerunfailures/issues/225>_)

v11.1.2

Compare Source

Bug fixes
+++++++++

  • Execute teardown when test was skipped in setup phase of a fixture.

v11.1.1

Compare Source

Bug fixes
+++++++++

  • Fix crash during teardown when runtest protocol hook is overwritten by
    another plugin.

  • Fix crash during teardown when TestCase class is used as base class.

v11.1

Compare Source

Bug fixes
+++++++++

  • Execute teardown when test was skipped in setup phase of a fixture.

v11.0

Compare Source

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.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants