MCPcopy
hub / github.com/aio-libs/aiohttp / test_release_close

Function test_release_close

tests/test_connector.py:622–631  ·  view source on GitHub ↗
(loop, key)

Source from the content-addressed store, hash-verified

620
621
622async def test_release_close(loop, key) -> None:
623 conn = aiohttp.BaseConnector(loop=loop)
624 proto = create_mocked_conn(should_close=True)
625
626 conn._acquired.add(proto)
627 conn._release(key, proto)
628 assert not conn._conns
629 assert proto.close.called
630
631 await conn.close()
632
633
634async def test__release_acquired_per_host1(

Callers

nothing calls this directly

Calls 4

_releaseMethod · 0.95
closeMethod · 0.95
addMethod · 0.80
create_mocked_connFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…