We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18e7317 commit 2064a48Copy full SHA for 2064a48
tests/conftest.py
@@ -1,4 +1,6 @@
1
+import asyncio
2
import logging
3
+import os
4
from math import inf
5
from threading import Event
6
from typing import Any, Callable, no_type_check
@@ -40,6 +42,11 @@
40
42
resource.setrlimit(resource.RLIMIT_NOFILE, (soft, hard))
41
43
44
45
+# Enforce selector event loop on Windows.
46
+if os.name == "nt":
47
+ asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # type:ignore
48
+
49
50
class TestSession(Session):
51
"""A session that copies sent messages to an internal stream, so that
52
they can be accessed later.
0 commit comments