(self)
| 1065 | cap.start() |
| 1066 | |
| 1067 | def test_stderr(self) -> None: |
| 1068 | cap = capture.FDCapture(2) |
| 1069 | cap.start() |
| 1070 | print("hello", file=sys.stderr) |
| 1071 | s = cap.snap() |
| 1072 | cap.done() |
| 1073 | assert s == "hello\n" |
| 1074 | |
| 1075 | def test_stdin(self) -> None: |
| 1076 | cap = capture.FDCapture(0) |