MCPcopy Create free account
hub / github.com/aio-libs/aiohttp / uvloop_loop

Function uvloop_loop

tests/conftest.py:291–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289
290@pytest.fixture
291def uvloop_loop() -> Iterator[asyncio.AbstractEventLoop]:
292 if uvloop is None:
293 pytest.skip("uvloop is not installed")
294 factory = uvloop.new_event_loop
295 with loop_context(factory) as _loop:
296 asyncio.set_event_loop(_loop)
297 yield _loop
298
299
300@pytest.fixture

Callers

nothing calls this directly

Calls 1

loop_contextFunction · 0.90

Tested by

no test coverage detected