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
{{ message }}
Repository navigation
Reuse existing event loop if one is already running #543
When I run async tests using pytest-asyncio after integration tests using playwright-pytest (only using playwright.sync_api calls), then those tests fail with the error already described in #359 . I don't know much about the internals of pytest-asyncio, but wouldn't it be possible to reuse the event loop when one is already running (and only try to start a new one when not)?
Activity
medihack commentedon May 14, 2023
Just as a note (to help others that stumble upon this) there is a simple workaround. Install nest_asyncio and then put this into the root
conftest.py: