-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest >= 8.2 is not yet supported (not only tests fail) #267
Comments
This is now affecting pytest 8.2.0. |
This looks like a repeat of what 0ab54f0 tried to address (the teardown fixtures are not being called correctly). I spent some time debugging this this afternoon and the logic still looks correct, although it is effectively the same error. I'm not too familiar with the pytest internals but I wonder if the fix is somewhere along the lines of keeping a reference to the original setupstate instead of the depending on the final tests setupstate object? |
Hi guys, I think we've faced the same problem using pytest-rerunfailures with pytest 8.2.2 and pytest-xdist 3.6.1. we run tests with xdist loadscope and rerunfailures and on the step of collecting tests it fails:
We had to rollback to pytest 7.4.4 but left rerunfailures-14.0, xdist-3.6.1 and now it works properly. |
With pytest==8.2.2 and pytest-xdist==3.6.1, and pytest-rerunfailures==14.0, all tests that undergo a rerun result in the following AssertionError:
It works fine for me on pytest==8.2.1 and pytest-cdist==3.5.0 and pytest-rerunfailures==14.0. |
It seems reruns are not working with pytest==8.2.2 and pytest-rerunfailures==14.0, anyone aware of any workarounds? |
The currently only known workaround is to use an older version of |
@asottile-sentry had teardown issues and bisected it to pytest-dev/pytest#11833 (which I authored). pytest-dev/pytest#12135 could also be the cause of some of the errors. I'm not familiar with how pytest-rerunfailures messes with teardowns, but maybe looking through those PRs can help you debug. |
Thanks @jakkdl I can confirm that pytest-dev/pytest@70c11582aaed is the exact commit that causes the fail of five tests in pytest-rerunfailures test suite:
|
reopening this as pytest==8.2 is still broken: #278 (comment) |
it looks like this was fixed in 8.2.x after 8.2.2 regressed but 8.2.3 was never released -- I believe you can use |
See https://github.com/pytest-dev/pytest-rerunfailures/actions/runs/8409152908/job/23026172136
This
can be a temporary problem or ais a hint that we have to change something here to make it compatible again.The text was updated successfully, but these errors were encountered: