-
Notifications
You must be signed in to change notification settings - Fork 276
lots of failing tests with pytest-asyncio-0.19.0 #2096
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
Thanks for reporting this. My quick guess is that we haven't explicitly marked all the tests that are coroutines with I will check soon and fix this soon. |
Sorry that the pytest-asyncio update causes trouble, but it was necessary. The old behavior (legacy mode) caused compatibility problems for projects that wanted to support multiple async frameworks. We deprecated legacy mode at the beginning of this year and switched the default mode to strict in v0.19, which requires tests and fixtures to be explicitly marked. Here's the relevant section in the docs: |
@grossmj this happens with 2.2.x |
Fixed for both 3.0 and 2.2.x |
Hi,
I'm having some troubles with the gns3 tests with the latest
pytest-asyncio
(0.19.0 to be precise). Many tests start to fail with errors likeAttributeError: 'coroutine' object has no attribute '_create_netmap_config'
. Running these tests withpytest-asyncio-0.18.3
works without any failed tests.I had a look at the changes for
pytest-asyncio
and the only breaking changed seemed to be the change to usestrict mode
by default, see: pytest-dev/pytest-asyncio#380Another hint in this direction seems to be: pytest-dev/pytest-asyncio#390
However, i really have no idea if that is the case here, but i hope this can be fixed somehow, otherwise i would need to restrict the pytest-asyncio version on gentoo. While it would work as a temporally fix, it's also frowned up and only would make it more difficult in the future.
Our bug report with additional information can be found here: https://bugs.gentoo.org/863770
The text was updated successfully, but these errors were encountered: