-
Notifications
You must be signed in to change notification settings - Fork 159
async fixtures are incompatible with pytest 3.7.0 #89
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
Got same issue, any ideas? |
For now I've just pinned my pytest to 3.6.4 |
Same problem here. Get this error:
when trying to use a async fixture in a test. Works with pytest 3.6.4. Doesn't even appear to be anything related in the pytest changelog. |
I got a similar error. I filed this issue in pytest pytest-dev/pytest#3747 (more details in there). @RonnyPfannschmidt suggested to open an issue over here. I put up a minimal test case https://github.com/JohanLorenzo/pytest-fixture-bug-3747. Please let me know if I can provide more details. |
@jwldk fixture definition changed in pytest to give a deprecationwarning on non-fixture usage, this issue is a collateral of that |
I investigated and here's the problem: pytest-asyncio/pytest_asyncio/plugin.py Lines 45 to 50 in 1ada096
In pytest 3.7.0 @RonnyPfannschmidt unless we find a solution to this I'm considering reverting the wrapping code. |
Opened a tentative PR at pytest-dev/pytest#3754 |
Not sure exactly what the issue is yet but test suite passes in pytest==3.6.* but fails in the very recently released pytest 3.7.0.
The text was updated successfully, but these errors were encountered: