MCPcopy Index your code
hub / github.com/python/cpython / aclose

Method aclose

Lib/test/test_contextlib_async.py:475–476  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

473 state = []
474 class C:
475 async def aclose(self):
476 state.append(1)
477 x = C()
478 self.assertEqual(state, [])
479 async with aclosing(x) as y:

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected