MCPcopy Index your code
hub / github.com/RustPython/RustPython / ExitCM

Class ExitCM

Lib/test/test_contextlib_async.py:587–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585 self.assertIsNone(exc)
586 self.assertIsNone(exc_tb)
587 class ExitCM(object):
588 def __init__(self, check_exc):
589 self.check_exc = check_exc
590 async def __aenter__(self):
591 self.fail("Should not be called!")
592 async def __aexit__(self, *exc_details):
593 await self.check_exc(*exc_details)
594
595 async with self.exit_stack() as stack:
596 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