You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If there is a user defined fixture which handles loop shutdown and closing the loop on its own, the plugin raises an error.
Expected behavior: If user code closes the event loop, pytest-asyncio should handle this transparently.
Actual behavior: pytest-asyncio raises RuntimeError: Event loop is closed.
..\..\AppData\Local\Programs\Python\Python310\lib\contextlib.py:142: in __exit__
next(self.gen)
.venv\lib\site-packages\pytest_asyncio\plugin.py:1168: in _provide_event_loop
loop.run_until_complete(loop.shutdown_asyncgens())
..\..\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py:624: in run_until_complete
self._check_closed()
If there is a user defined fixture which handles loop shutdown and closing the loop on its own, the plugin raises an error.
Expected behavior: If user code closes the event loop, pytest-asyncio should handle this transparently.
Actual behavior: pytest-asyncio raises RuntimeError: Event loop is closed.
Example working with 0.25.1, crashes with 0.25.2:
The text was updated successfully, but these errors were encountered: