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
For example, unittest test case needs to call several async functions (setup, test, teardown) from the synchronous code using the same execution context and event loop.
Activity
asvetlov commentedon Mar 18, 2022
Sometimes asyncio.run() is not enough.
For example, unittest test case needs to call several async functions (setup, test, teardown) from the synchronous code using the same execution context and event loop.
The proposal provides the following:
asvetlov commentedon Mar 24, 2022
New changeset 4119d2d by Andrew Svetlov in branch 'main':
bpo-47062: Implement asyncio.Runner context manager (GH-31799)
4119d2d
kumaraditya303 commentedon Mar 25, 2022
With this change, Github Actions fails first time and it passes in the second rerun of running asyncio tests.
See https://github.com/python/cpython/runs/5682275663?check_suite_focus=true and main branch.
asvetlov commentedon Mar 25, 2022
I believe the error is fixed by bpo-47118
asvetlov commentedon Mar 25, 2022
New changeset bad6ffa by Andrew Svetlov in branch 'main':
bpo-47062: Rename factory argument to loop_factory (GH-32113)
bad6ffa
encukou commentedon Jun 2, 2022
It seems that this commit broke tests in
aiohttp: aio-libs/aiohttp#6757 (comment)graingert commentedon Jun 22, 2022
@encukou I have an issue here #93896 and a PR here #94058