()
| 377 | |
| 378 | @contextlib.contextmanager |
| 379 | def capture_output(): |
| 380 | stderr = StringIO() |
| 381 | stdout = StringIO() |
| 382 | with mock.patch('sys.stderr', stderr): |
| 383 | with mock.patch('sys.stdout', stdout): |
| 384 | yield CapturedOutput(stdout, stderr) |
| 385 | |
| 386 | |
| 387 | class BufferedBytesIO(BytesIO): |
no test coverage detected