From 819cb8211d0142df3acbf832c51e8717839ecc15 Mon Sep 17 00:00:00 2001 From: Louis Deconinck Date: Thu, 17 Sep 2026 21:51:30 +0200 Subject: [PATCH] Document pytest-forked incompatibility Both plugins override pytest_runtest_protocol and whichever runs first prevents the other from working, so tests are not re-run under --forked. Document this in the compatibility section until a per-attempt API between the plugins exists. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- README.rst | 4 ++++ changes/313.doc.rst | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 changes/313.doc.rst diff --git a/README.rst b/README.rst index 747072ee..f473a3c8 100644 --- a/README.rst +++ b/README.rst @@ -353,6 +353,10 @@ Compatibility ------------- * This plugin is *not* compatible with pytest-xdist's --looponfail flag. +* This plugin is *not* compatible with + `pytest-forked `_: both plugins + override ``pytest_runtest_protocol``, and whichever runs first prevents + the other from working, so tests are not re-run. * This plugin is *not* compatible with the core --pdb flag. * This plugin is *not* compatible with the plugin `flaky `_, you can only have diff --git a/changes/313.doc.rst b/changes/313.doc.rst new file mode 100644 index 00000000..3f0d0abb --- /dev/null +++ b/changes/313.doc.rst @@ -0,0 +1,3 @@ +Document the incompatibility with ``pytest-forked``: both plugins override +``pytest_runtest_protocol`` and whichever runs first prevents the other +from working.