Searched refs:enter_result (Results 1 – 4 of 4) sorted by relevance
669 def __init__(self, enter_result=None): argument670 self.enter_result = enter_result673 return self.enter_result
962 with self.redirect_stream(f) as enter_result:963 self.assertIs(enter_result, f)1012 with suppress(ValueError) as enter_result:1013 self.assertIsNone(enter_result)
415 with self.redirect_stream(f) as enter_result:416 self.assertIs(enter_result, f)
159 .. function:: nullcontext(enter_result=None)161 Return a context manager that returns *enter_result* from ``__enter__``, but175 An example using *enter_result*::