-
Notifications
You must be signed in to change notification settings - Fork 160
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
RuntimeError: Event loop is closed #178
Comments
MRE: https://github.com/dimaqq/mre-loop-closed Key circumstances: |
A curious observation, when the test is annotated site-packages/pytest_asyncio/plugin.py:175:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:175: in inner
coro = func(**kwargs)
site-packages/pytest_asyncio/plugin.py:177: in inner
task = asyncio.ensure_future(coro, loop=_loop)
asyncio/tasks.py:661: in ensure_future
task = loop.create_task(coro_or_future)
asyncio/base_events.py:429: in create_task
self._check_closed() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After upgrading to
pytest==5.4.3 pytest-asyncio==0.14.0
I'm getting transient(?) test failures and all I see in the log is this:There are some fragile tests in the project and we use flaky to manage those, so I see this error only when some test fails thrice.
Weirdly I don't get to see the actual test failure/cause in this case.
At the moment I'm at a loss as to how to debug it 🤔
The text was updated successfully, but these errors were encountered: