Skip to content

Commit b91e651

Browse files
committed
add comment
1 parent 7ea1429 commit b91e651

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/asynchronous/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +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+
# Needed for Python 3.8.
2021
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
2122
return asyncio.WindowsSelectorEventLoopPolicy() # type: ignore[attr-defined]
2223

test/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +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+
# Needed for Python 3.8.
1819
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
1920
return asyncio.WindowsSelectorEventLoopPolicy() # type: ignore[attr-defined]
2021

0 commit comments

Comments
 (0)