(self)
| 854 | f.close() |
| 855 | |
| 856 | def test_unicode_and_str_mixture(self) -> None: |
| 857 | f = capture.CaptureIO() |
| 858 | f.write("\u00f6") |
| 859 | pytest.raises(TypeError, f.write, b"hello") |
| 860 | |
| 861 | def test_write_bytes_to_buffer(self) -> None: |
| 862 | """In python3, stdout / stderr are text io wrappers (exposing a buffer |