Skip to content

Commit 994d411

Browse files
committed
fixup
1 parent e8ba2cd commit 994d411

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import qasync
22
import asyncio
3+
import os
34
from qasync import QApplication
45

56
def test_run_with_contextmanager(application):
67
async def coro():
78
event_loop = asyncio.get_event_loop()
8-
assert type(event_loop).__name__ == "QSelectorEventLoop"
9+
assert type(event_loop).__name__ == "QIOCPEventLoop" if os.name == 'nt' else "QSelectorEventLoop"
910
await asyncio.sleep(0)
1011

1112
qasync.run(coro())

0 commit comments

Comments
 (0)