MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_text

Method test_text

testing/test_capture.py:871–880  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

869
870class TestTeeCaptureIO(TestCaptureIO):
871 def test_text(self) -> None:
872 sio = io.StringIO()
873 f = capture.TeeCaptureIO(sio)
874 f.write("hello")
875 s1 = f.getvalue()
876 assert s1 == "hello"
877 s2 = sio.getvalue()
878 assert s2 == s1
879 f.close()
880 sio.close()
881
882 def test_unicode_and_str_mixture(self) -> None:
883 sio = io.StringIO()

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
getvalueMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected