MCPcopy Create free account
hub / github.com/pybind/pybind11 / test_multi_captured

Function test_multi_captured

tests/test_iostream.py:214–223  ·  view source on GitHub ↗
(capfd)

Source from the content-addressed store, hash-verified

212
213
214def test_multi_captured(capfd):
215 stream = StringIO()
216 with redirect_stdout(stream):
217 m.captured_output("a")
218 m.raw_output("b")
219 m.captured_output("c")
220 m.raw_output("d")
221 stdout, stderr = capfd.readouterr()
222 assert stdout == "bd"
223 assert stream.getvalue() == "ac"
224
225
226def test_dual(capsys):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected