()
| 887 | |
| 888 | |
| 889 | def test_dontreadfrominput() -> None: |
| 890 | from _pytest.capture import DontReadFromInput |
| 891 | |
| 892 | f = DontReadFromInput() |
| 893 | assert f.buffer is f |
| 894 | assert not f.isatty() |
| 895 | pytest.raises(OSError, f.read) |
| 896 | pytest.raises(OSError, f.readlines) |
| 897 | iter_f = iter(f) |
| 898 | pytest.raises(OSError, next, iter_f) |
| 899 | pytest.raises(UnsupportedOperation, f.fileno) |
| 900 | f.close() # just for completeness |
| 901 | |
| 902 | |
| 903 | def test_captureresult() -> None: |
nothing calls this directly
no test coverage detected