chore: call selectorPolicy

This commit is contained in:
Matthias 2024-08-09 06:16:44 +02:00
parent 758e532a6a
commit 2b4438720c

View File

@ -2,8 +2,8 @@ import asyncio
import sys
def asyncio_setup() -> None:
def asyncio_setup() -> None: # pragma: no cover
# Set eventloop for win32 setups
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy)
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())