(self)
| 869 | |
| 870 | class TestTeeCaptureIO(TestCaptureIO): |
| 871 | def test_text(self) -> None: |
| 872 | sio = io.StringIO() |
| 873 | f = capture.TeeCaptureIO(sio) |
| 874 | f.write("hello") |
| 875 | s1 = f.getvalue() |
| 876 | assert s1 == "hello" |
| 877 | s2 = sio.getvalue() |
| 878 | assert s2 == s1 |
| 879 | f.close() |
| 880 | sio.close() |
| 881 | |
| 882 | def test_unicode_and_str_mixture(self) -> None: |
| 883 | sio = io.StringIO() |