Skip to content

Commit

Permalink
Revert "use asyncio.EventLoop on 3.13+"
Browse files Browse the repository at this point in the history
This reverts commit 4d1dec7.
  • Loading branch information
graingert committed Dec 30, 2024
1 parent 2c0f7c1 commit 765b1e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def as_cwd(path: Path):

def get_asyncio_default_loop_per_os() -> type[asyncio.AbstractEventLoop]:
"""Get the default asyncio loop per OS."""
if sys.version_info >= (3, 13): # pragma: nocover
return asyncio.EventLoop
if sys.platform == "win32":
return asyncio.ProactorEventLoop # type: ignore # pragma: nocover
return asyncio.SelectorEventLoop # pragma: nocover
else:
return asyncio.SelectorEventLoop # pragma: nocover

0 comments on commit 765b1e4

Please sign in to comment.