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

Function test_default_loop

tests/test_client_request.py:308–312  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

306
307
308def test_default_loop(loop) -> None:
309 asyncio.set_event_loop(loop)
310 req = ClientRequest("get", URL("http://python.org/"))
311 assert req.loop is loop
312 loop.run_until_complete(req.close())
313
314
315@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
ClientRequestClass · 0.90

Tested by

no test coverage detected