So the patch won't fully fix the issue for pytest-rerunfailures, but since the pytest upstream bug [1] that this patch fixes was originally posted due to a regression in pytest-rerunfailures I think this is a net improvement.
After applying the fix for [1], the error now in pytest-rerunfailures is that non-function teardown fixtures (e.g. class, module, etc.) do not get called correctly. This was previously a problem that upstream tried to solve in [2] but I think pytest 8.2 introduced changes that cause it to regress again. There is an upstream (rerunfailures) bug [3] to track the issue there.
So the patch won't fully fix the issue for pytest- rerunfailures, but since the pytest upstream bug [1] that this patch fixes was originally posted due to a regression in pytest- rerunfailures I think this is a net improvement.
After applying the fix for [1], the error now in pytest- rerunfailures is that non-function teardown fixtures (e.g. class, module, etc.) do not get called correctly. This was previously a problem that upstream tried to solve in [2] but I think pytest 8.2 introduced changes that cause it to regress again. There is an upstream (rerunfailures) bug [3] to track the issue there.
[1] https:/ /github. com/pytest- dev/pytest/ issues/ 12424 /github. com/pytest- dev/pytest- rerunfailures/ commit/ 0ab54f00d68bb4f eadae58d2f4e30f 6663495571 /github. com/pytest- dev/pytest- rerunfailures/ issues/ 267
[2] https:/
[3] https:/