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

Function test_del

tests/test_client_session.py:318–325  ·  view source on GitHub ↗
(connector, loop, warning)

Source from the content-addressed store, hash-verified

316
317
318def test_del(connector, loop, warning):
319 # N.B. don't use session fixture, it stores extra reference internally
320 session = ClientSession(connector=connector, loop=loop)
321 loop.set_exception_handler(lambda loop, ctx: None)
322
323 with warning(ResourceWarning):
324 del session
325 gc.collect()
326
327
328def test_context_manager(connector, loop):

Callers

nothing calls this directly

Calls 2

ClientSessionClass · 0.90
warningFunction · 0.85

Tested by

no test coverage detected