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

Class ExitCM

Lib/test/test_contextlib_async.py:597–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595 self.assertIsNone(exc)
596 self.assertIsNone(exc_tb)
597 class ExitCM(object):
598 def __init__(self, check_exc):
599 self.check_exc = check_exc
600 async def __aenter__(self):
601 self.fail("Should not be called!")
602 async def __aexit__(self, *exc_details):
603 await self.check_exc(*exc_details)
604
605 async with self.exit_stack() as stack:
606 stack.push_async_exit(_expect_ok)

Callers 1

test_async_pushMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_async_pushMethod · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…