We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8ba2cd commit 994d411Copy full SHA for 994d411
1 file changed
tests/test_run.py
@@ -1,11 +1,12 @@
1
import qasync
2
import asyncio
3
+import os
4
from qasync import QApplication
5
6
def test_run_with_contextmanager(application):
7
async def coro():
8
event_loop = asyncio.get_event_loop()
- assert type(event_loop).__name__ == "QSelectorEventLoop"
9
+ assert type(event_loop).__name__ == "QIOCPEventLoop" if os.name == 'nt' else "QSelectorEventLoop"
10
await asyncio.sleep(0)
11
12
qasync.run(coro())
0 commit comments