-
Notifications
You must be signed in to change notification settings - Fork 159
Unclosed event loops warning from pytest-asyncio 0.17.0 on Windows #256
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
Hey! |
Doing it in a fixture is too late: event_loop might have already been called if the first test running is async, and it would fail on Windows. This started to be needed after pytest-asyncio 0.17.0 was released. See <pytest-dev/pytest-asyncio#256>.
Almost! Setting up a session failed when the first test of the run is async (tests run order is randomized). The direction was right though. The problem is solved my moving the initialisation code into Thank you very much! |
You are welcome! |
Hello,
after updating to pytest-asyncio 0.17.0, and setting
asyncio_mode=auto
in the config, we are seeing asyncio tests failing because warnings are generated on Windows.See this test run for the errors.
Is there anything wrong we are doing or is it a regression? This test configuration might be relevant.
Thank you very much
The text was updated successfully, but these errors were encountered: