-
-
Notifications
You must be signed in to change notification settings - Fork 721
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
Tests fail to run when pytest-asyncio>0.14.0 installed in environment #6433
Comments
I tried to remove the pinning once for distributed but failed to do so for different reasons #4858
I'm open to setting this config in our repo if that alleviates any pain but I do not know if pytest-asyncio would still mess with our asyncio setup regardless. Maybe @graingert has an answer for this? |
I think other projects are using |
I'm happy to see
we can also use |
Thanks both! I like the idea of just disabling the plugin so I'll raise a PR to do that. I'll also explore migrating away from it in other projects, would be good to be consistent with distributed to reduce maintenance overhead. |
Necrobump. Unrelatedly, I just hit this in @beartype. The newest version of the
In short, |
A while ago distributed dropped
pytest-asyncio
in favour ofgen_test
(see #6050). Other projects in the Dask ecosystem continue to usepytest-asyncio
and I've noticed recently that havingpytest-asyncio>0.14.0
simply installed in the conda env causes the distributed tests to fail.Error when running tests
I typically have a development conda env with many Dask projects installed from source. Something must've bumped the
pytest-asyncio
version and with the pin in distributed gone I have to manually downgrade.Once quick fix for this seems to be to add
asyncio_mode=strict
to the pytest section insetup.cfg
. But that's a little frustrating given that we don't even use it here.Another option is to go through the other Dask subprojects and remove
pytest-asyncio
in favour of something else. But that does open up a bunch of additional work.Given that @fjetter and @graingert made this change I'm keen to get your advice on a good course of action here? #6050 and #6063 are pretty information light so it would be good to know what the issues were that caused it to be removed because I expect the same problems to be happening in other projects. Is it ok to rely on
gen_test
in other projects that havedistributed
as a dependency?The text was updated successfully, but these errors were encountered: