diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-07-09 08:34:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-09 08:34:19 (GMT) |
commit | c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c (patch) | |
tree | 6f4a5e64975f38f477b0cae85c6ca82a292d1fc1 /Lib/test/test_asyncio/utils.py | |
parent | a9d2f08b579a400e0f2a337116bb29f476249dff (diff) | |
download | cpython-c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c.zip cpython-c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c.tar.gz cpython-c29fce05f3b4558f2dcd91ccaac5ab646caf6c1c.tar.bz2 |
[3.14] gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665) (#136455)
gh-134657: Remove newly added private names from asyncio.__all__ (GH-134665)
(cherry picked from commit 797abd1f7fdeb744bf9f683ef844e7279aad3d72)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Lib/test/test_asyncio/utils.py')
-rw-r--r-- | Lib/test/test_asyncio/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/utils.py b/Lib/test/test_asyncio/utils.py index 0a96573..a480e16 100644 --- a/Lib/test/test_asyncio/utils.py +++ b/Lib/test/test_asyncio/utils.py @@ -601,3 +601,9 @@ async def await_without_task(coro): await asyncio.sleep(0) if exc is not None: raise exc + + +if sys.platform == 'win32': + DefaultEventLoopPolicy = asyncio.windows_events._DefaultEventLoopPolicy +else: + DefaultEventLoopPolicy = asyncio.unix_events._DefaultEventLoopPolicy |