-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
regression in pytest 8.1.1: module level setup function doesn't seem to be run #12113
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
Comments
Use |
Oh, so the bug is that it still worked in pytest 8.0.x, is that it ? |
I would expect that changing |
This is the expectation. I tried to take a look but the project is quite formidable so I can't quickly figure out what's going wrong. Is it possible that the breakage is from upgrading to pytest 8 and not necessarily from |
yeah we have a lot of technical debt. Thanks for taking a shot still :)
I'll try that ! |
So actually what happened is that I forgot to also migrate |
The following is a minimal reproducer for a real-life application in yt:
This test worked as expected until pytest 8.0.2 but fails with version 8.1.1 as
which seems to indicate that the
setup
function wasn't run ahead of the test.Possibly related to #12011 or how it was resolved ?
exact env:
Bug seen on MacOS 14 and ubuntu-latest on GHA
pip list
from the virtual environment you are usingThe text was updated successfully, but these errors were encountered: