summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/utils.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2025-07-09 08:34:19 (GMT)
committerGitHub <noreply@github.com>2025-07-09 08:34:19 (GMT)
commitc29fce05f3b4558f2dcd91ccaac5ab646caf6c1c (patch)
tree6f4a5e64975f38f477b0cae85c6ca82a292d1fc1 /Lib/test/test_asyncio/utils.py
parenta9d2f08b579a400e0f2a337116bb29f476249dff (diff)
downloadcpython-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.py6
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