Skip to content

Commit 7ea1429

Browse files
committed
set the event loop policy
1 parent 227a454 commit 7ea1429

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/asynchronous/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def event_loop_policy():
1717
# has issues with sharing sockets across loops (https://github.com/python/cpython/issues/122240)
1818
# We explicitly use a different loop implementation here to prevent that issue
1919
if sys.platform == "win32":
20-
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
20+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
2121
return asyncio.WindowsSelectorEventLoopPolicy() # type: ignore[attr-defined]
2222

2323
return asyncio.get_event_loop_policy()

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def event_loop_policy():
1515
# has issues with sharing sockets across loops (https://github.com/python/cpython/issues/122240)
1616
# We explicitly use a different loop implementation here to prevent that issue
1717
if sys.platform == "win32":
18-
# asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
18+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
1919
return asyncio.WindowsSelectorEventLoopPolicy() # type: ignore[attr-defined]
2020

2121
return asyncio.get_event_loop_policy()

0 commit comments

Comments
 (0)