BSD Ports

devel/py-test-rerunfailures 16.6.1 NetBSD

Pytest plugin to re-run tests to eliminate flaky failures

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
54f5c4b663
License
mpl-2.0
Categories
devel, python
Package size
36.7 KiB, 180.1 KiB installed

Description

pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate intermittent failures.

In the other systems

SystemPortVersion
NetBSDdevel/py-test-rerunfailures16.6.1
OpenBSDdevel/py-test-rerunfailures16.4

Install

Binary package:

pkgin install py311-test-rerunfailures

From pkgsrc:

cd /usr/pkgsrc/devel/py-test-rerunfailures && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_6416.6.1
NetBSD 10.1 aarch6416.3
SmartOS / illumos x86_6416.7
macOS 15 arm6416.7

Dependencies

Run dependencies 3

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-test-rerunfailures-16.6.1, py313-test-rerunfailures-16.6.1, py314-test-rerunfailures-16.6.1

Commit history 4

DateCommitCreditsLog message
54f5c4b663 adam py-test-rerunfailures: updated to 16.7
16.7 (2026-09-17) Features - Allow configuring ``only_rerun`` regular expressions in ``pytest.ini`` files. - Show each rerun attempt and its final outcome in the rerun test summary info section. - Allow flaky marker conditions to inspect the exception that caused a failed test phase, including when running with pytest-xdist. Bug Fixes - Match ``only_rerun`` against the full exception chain (``__cause__`` and ``__context__``), not only the outermost exception. Match ``rerun_except`` against explicit ``__cause__`` links only, so implicit ``except`` / ``finally`` context does not suppress reruns. - Fix ``INTERNALERROR`` when ``only_rerun`` or ``rerun_except`` is given a bare exception class instead of a list. …
ac1ee21856 adam py-test-rerunfailures: updated to 16.6.1
16.6.1 (2026-09-03) Bug Fixes - Ensure teardown reports are passed to ``pytest_runtest_logreport`` for rerun attempts. - Prevent superseded built-in subtest failures from remaining in the final test result when rerunning tests with pytest-xdist. - Restore module, class, and session scoped fixture teardown when a ``flaky`` marker condition is falsy. - Restore module, class, and session scoped fixture teardown when an error raised during teardown rules out a re-run. - Keep module, class, and session scoped fixtures alive across re-runs of a test whose call phase failed through subtests only. - Authenticate xdist StatusDB connections with a per-session token. - Ensure negative rerun counts do not skip the initial test execution. Misc …
6745f90a72 adam py-test-rerunfailures: updated to 16.6
16.6 (2026-08-17) Features - Add a repeatable ``--rerun-exclude-path`` option to exclude test files or directories from reruns. Bug Fixes - Fix a regression in version 16.5 which made ``--pdb`` unusable even when no reruns were configured.
79e03abc03 adam py-test-rerunfailures: updated to 16.4
16.4 (2026-07-01) 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. - 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.