(self)
| 823 | self._capture.start_capturing() |
| 824 | |
| 825 | def close(self) -> None: |
| 826 | if self._capture is not None: |
| 827 | out, err = self._capture.pop_outerr_to_orig() |
| 828 | self._captured_out += out |
| 829 | self._captured_err += err |
| 830 | self._capture.stop_capturing() |
| 831 | self._capture = None |
| 832 | |
| 833 | def readouterr(self) -> CaptureResult[AnyStr]: |
| 834 | """Read and return the captured output so far, resetting the internal |