(self)
| 984 | pytest.raises(AssertionError, cap.start) |
| 985 | |
| 986 | def test_stderr(self) -> None: |
| 987 | cap = capture.FDCapture(2) |
| 988 | cap.start() |
| 989 | print("hello", file=sys.stderr) |
| 990 | s = cap.snap() |
| 991 | cap.done() |
| 992 | assert s == "hello\n" |
| 993 | |
| 994 | def test_stdin(self) -> None: |
| 995 | cap = capture.FDCapture(0) |