Skip to content

Commit be946e5

Browse files
committed
Try to avoid ProactorEventLoop
1 parent d32a3f3 commit be946e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def run(self, sockets: list[socket] | None = None) -> None:
459459
"""Run the server."""
460460
# Set the event loop policy in thread with server for Windows and Python 3.12+.
461461
# This is necessary because there are problems with closing connections when using `ProactorEventLoop`
462-
if sys.version_info >= (3, 12) and sys.platform == 'win32':
462+
if sys.version_info >= (3, 10) and sys.platform == 'win32':
463463
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
464464
super().run(sockets=sockets)
465465

0 commit comments

Comments
 (0)