Skip to content

Commit 997afe2

Browse files
committed
fix ClockEventLoop being a selector loop, instead use default of asyncio
1 parent a723020 commit 997afe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_asyncio/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def pytest_runtest_setup(item):
159159
item.fixturenames.append(fixture)
160160

161161

162-
class ClockEventLoop(asyncio.SelectorEventLoop):
162+
class ClockEventLoop(asyncio.new_event_loop().__class__):
163163
"""
164164
A custom event loop that explicitly advances time when requested.
165165
"""

0 commit comments

Comments
 (0)