(self, text: str)
| 153 | return "".join(self._lines) |
| 154 | |
| 155 | def write(self, text: str) -> None: |
| 156 | if len(self._lines) == self._max_lines: |
| 157 | self._lines = self._lines[1:] + (text,) |
| 158 | else: |
| 159 | self._lines += (text,) |
| 160 | if self._callback is not None: |
| 161 | self._callback(self.getvalue()) |
| 162 | |
| 163 | |
| 164 | def _make_example_did_not_run(example_name): |
no test coverage detected