(self)
| 1152 | cap.stop_capturing() |
| 1153 | |
| 1154 | def test_capturing_done_simple(self) -> None: |
| 1155 | with self.getcapture() as cap: |
| 1156 | sys.stdout.write("hello") |
| 1157 | sys.stderr.write("world") |
| 1158 | out, err = cap.readouterr() |
| 1159 | assert out == "hello" |
| 1160 | assert err == "world" |
| 1161 | |
| 1162 | def test_capturing_reset_simple(self) -> None: |
| 1163 | with self.getcapture() as cap: |
nothing calls this directly
no test coverage detected