(self)
| 931 | sio.close() |
| 932 | |
| 933 | def test_unicode_and_str_mixture(self) -> None: |
| 934 | sio = io.StringIO() |
| 935 | f = capture.TeeCaptureIO(sio) |
| 936 | f.write("\u00f6") |
| 937 | with pytest.raises(TypeError): |
| 938 | f.write(b"hello") # type: ignore[arg-type] |
| 939 | |
| 940 | |
| 941 | def test_dontreadfrominput() -> None: |