-
Notifications
You must be signed in to change notification settings - Fork 59
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
flaky + pytest-asyncio: RuntimeError: Event loop is closed #166
Comments
any updates? need to use flaky with pyppeteer to test web UI. |
@seifertm awesome, this appears to have fixed this issue for me. Any idea when it will be in a stable release? |
@jaredar1232 I think a release in the near future would make sense, especially because of the deprecations around async fixture handling. @Tinche @asvetlov Would it make sense to release pytest-asyncio v0.17? Or is there something that needs to be done before that? |
pytest-asyncio 0.17 has just been released. I guess to close the issue. |
I can confirm this is fixed when using |
This issue seems to have been fixed. A user reported a working integration between flaky and pytest-asyncio for v0.18. I suppose it would be reasonable to close this issue. |
Latest
pytest
,pytest-asyncio
andflaky
just can't live happily together.When a flaky test fails, an error
RuntimeError: Event loop
is closed is reported instead of failure.Edit: In fact, first test failure breaks the harness and "flaky" test is not retried.
MRE: https://github.com/dimaqq/mre-loop-closed
Edit: cross-posted to pytest-dev/pytest-asyncio#178
The text was updated successfully, but these errors were encountered: