Skip to content

Commit

Permalink
fix coverage more
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Dec 30, 2024
1 parent 606dbd9 commit 165bda1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ 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: py-lt-313
return asyncio.EventLoop
if sys.platform == "win32": # pragma: py-no-win32 # pragma: py-gte-313
return asyncio.ProactorEventLoop # type: ignore
return asyncio.SelectorEventLoop # pragma: py-gte-313
return (
asyncio.EventLoop
if sys.version_info >= (3, 13)
else asyncio.ProactoEventLoop # type: ignore[attr-defined]
if sys.platform == "win32"
else asyncio.SelectorEventLoop
)

0 comments on commit 165bda1

Please sign in to comment.