(self, exception: Exception)
| 102 | self._wait_for_event_info_after(self._wait_id) |
| 103 | |
| 104 | def _reject(self, exception: Exception) -> None: |
| 105 | self._cleanup() |
| 106 | if exception: |
| 107 | base_class = TimeoutError if isinstance(exception, TimeoutError) else Error |
| 108 | exception = base_class(str(exception) + format_log_recording(self._logs)) |
| 109 | if not self._result.done(): |
| 110 | self._result.set_exception(exception) |
| 111 | self._wait_for_event_info_after(self._wait_id, exception) |
| 112 | |
| 113 | def wait_for_event( |
| 114 | self, |
no test coverage detected