(self)
| 68 | ) |
| 69 | |
| 70 | def test_stderr(self) -> None: |
| 71 | with self.assertLogs(level=logging.DEBUG) as cm: |
| 72 | self.emit(err(r"arf\n")) |
| 73 | self.assertExpectedInline( |
| 74 | self.flog(cm), |
| 75 | """\ |
| 76 | $ python emitter.py e 'arf\\n' |
| 77 | # stderr: |
| 78 | arf |
| 79 | """, |
| 80 | ) |
| 81 | |
| 82 | def test_stdout_passthru(self) -> None: |
| 83 | with self.assertLogs(level=logging.DEBUG) as cm: |