(self)
| 904 | f.close() |
| 905 | |
| 906 | def test_unicode_and_str_mixture(self) -> None: |
| 907 | f = capture.CaptureIO() |
| 908 | f.write("\u00f6") |
| 909 | with pytest.raises(TypeError): |
| 910 | f.write(b"hello") # type: ignore[arg-type] |
| 911 | |
| 912 | def test_write_bytes_to_buffer(self) -> None: |
| 913 | """In python3, stdout / stderr are text io wrappers (exposing a buffer |