Searched refs:enter_result (Results 1 – 3 of 3) sorted by relevance
732 def __init__(self, enter_result=None): argument733 self.enter_result = enter_result736 return self.enter_result742 return self.enter_result
1002 with self.redirect_stream(f) as enter_result:1003 self.assertIs(enter_result, f)1052 with suppress(ValueError) as enter_result:1053 self.assertIsNone(enter_result)
219 .. function:: nullcontext(enter_result=None)221 Return a context manager that returns *enter_result* from ``__enter__``, but235 An example using *enter_result*::