| 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) |
no outgoing calls