-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bump pytest and pytest-asyncio #344
Conversation
Whoops, I accidentally branched off the wrong branch.. rebasing. |
@@ -11,6 +11,7 @@ | |||
|
|||
|
|||
class TestUserType(enum.Enum): | |||
__test__ = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise Pytest will complain it cannot collect from this class since it has an (implicit) __init__
method.
I am a bit confused why some tests failed.. they pass locally. Trying to look into it. Have you experienced this before? Are there flaky tests (on CI)? |
Closing and reopening to see if that triggers CI. |
The test fails when run in the entire suite, not when run in isolation. Have narrowed down to the specific version change of pytest |
I'm still not entirely sure what's happening, it looks like a different |
The problem was practically every other test modifying global state. |
25cdb48
to
4fc36af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct to me.
SubRequest was removed, but it was really used to denote a FixtureRequest, so I updated that part and now everything works on the latest versions again.
edit: with pytest 8+, test ordering changed which exposed abuse of global state in tests, so I had to remove that too.