Lines Matching refs:__exit__
24 def __exit__(self, type, value, traceback): member in MockContextManager
27 return _GeneratorContextManager.__exit__(self, type,
69 if not self.__exit__(*sys.exc_info()):
73 def __exit__(self, *exc_info): member in Nested
80 if mgr.__exit__(*ex):
100 def __exit__(self, *exc_info): member in MockNested
103 return Nested.__exit__(self, *exc_info)
114 def __exit__(self, type, value, traceback): member in FailureTestCase.testEnterAttributeError1.LacksEnter
167 def __exit__(self, *args): member in FailureTestCase.testEnterThrows.EnterThrows
182 def __exit__(self, *args): member in FailureTestCase.testExitThrows.ExitThrows
469 def __exit__(self, type, value, traceback): member in ExceptionalTestCase.testRaisedStopIteration2.cm
510 def __exit__(self, type, value, traceback): member in ExceptionalTestCase.testRaisedGeneratorExit2.cm
531 def __exit__(self, a, b, c): member in ExceptionalTestCase.testErrorsInBool.cm
629 def __exit__(self, t, v, tb): pass member in AssignmentTargetTestCase.testMultipleComplexTargets.C
656 def __exit__(self, t, v, tb): return True member in ExitSwallowsExceptionTestCase.testExitTrueSwallowsException.AfricanSwallow
666 def __exit__(self, t, v, tb): return False member in ExitSwallowsExceptionTestCase.testExitFalseDoesntSwallowException.EuropeanSwallow
691 def __exit__(self, *exc_info): member in NestedWith.Dummy
702 def __exit__(self, *exc_info): pass member in NestedWith.EnterRaises
706 def __exit__(self, *exc_info): raise RuntimeError() member in NestedWith.ExitRaises