Skip to content

Commit 60e5219

Browse files
committed
CI: don't rely on current ioloop
1 parent d44bde8 commit 60e5219

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

binderhub/tests/conftest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,12 @@ def mock_asynchttpclient(request):
128128

129129

130130
@pytest.fixture
131-
def io_loop(event_loop, request):
131+
async def io_loop(event_loop, request):
132132
"""Same as pytest-tornado.io_loop, but runs with pytest-asyncio"""
133133
io_loop = AsyncIOMainLoop()
134-
io_loop.make_current()
135134
assert io_loop.asyncio_loop is event_loop
136135

137136
def _close():
138-
io_loop.clear_current()
139137
io_loop.close(all_fds=True)
140138

141139
request.addfinalizer(_close)

0 commit comments

Comments
 (0)