MCPcopy Index your code
hub / github.com/aws/aws-cli / capture_output

Function capture_output

awscli/testutils.py:379–384  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

377
378@contextlib.contextmanager
379def 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
387class BufferedBytesIO(BytesIO):

Calls 1

CapturedOutputClass · 0.85

Tested by

no test coverage detected