Pytest-retry

Latest version: v1.7.0

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

Scan your dependencies

Page 1 of 3

1.7.0

New Features
* Enabled changing the outcome name for compatibility with reporting plugins by andrew-cleveland in https://github.com/str0zzapreti/pytest-retry/pull/48

Bug Fixes
* Fix: Prevent `ResourceWarning` when using `pytest-xdist` by francis-clairicia in https://github.com/str0zzapreti/pytest-retry/pull/39
* Update readme docs for reporting outcome by str0zzapreti in https://github.com/str0zzapreti/pytest-retry/pull/49

New Contributors
* francis-clairicia made their first contribution in https://github.com/str0zzapreti/pytest-retry/pull/39
* andrew-cleveland made their first contribution in https://github.com/str0zzapreti/pytest-retry/pull/48

**Full Changelog**: https://github.com/str0zzapreti/pytest-retry/compare/1.6.3...1.7.0

1.6.3

Bug Fixes
* use verbosity count for trace limit rather than unlimited trace depth in verbose mode str0zzapreti in https://github.com/str0zzapreti/pytest-retry/pull/41
* Code snippets are now highlighted in the readme for supported editors (thanks Borda)

**Full Changelog**: https://github.com/str0zzapreti/pytest-retry/compare/1.6.2...1.6.3

1.6.2

Bug Fixes
* fixed Item instantiation error in Pytest 8 by str0zzapreti in https://github.com/str0zzapreti/pytest-retry/pull/35


**Full Changelog**: https://github.com/str0zzapreti/pytest-retry/compare/1.6.1...1.6.2

1.6.1

Bug Fixes
- Fixed an OSError exception which could occur due to a socket port assignment conflict when running multiple instances of pytest-retry with pytest-xdist n > 1 simultaneously on the same machine

1.6.0

New Features
- Retry reports will now be displayed when using pytest-xdist with n > 1
- Retry reports now log if a retried test passed on a subsequent attempt. Previously, only failures were logged


Fixes
- Additional test coverage to validate xdist compatability for retry reports
- Additional test coverage to prevent regressions with fixture resets during retries
- Cleaned up some internal naming for clarity and consistency


**Full Changelog**: https://github.com/str0zzapreti/pytest-retry/compare/1.5.0...1.6.0

1.5.0

New Features
- Global retries can now be configured using .ini files as an alternative to using command line options. This also adds pyproject.toml support for free. See the updated readme for details.


Bug Fixes
- Cumulative timing mode only summed first and final attempt durations when retries > 1.
- Empty flaky mark would default to 0 retries, but still retry once (task failed successfully)

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.