MCPcopy
hub / github.com/pytest-dev/pytest / test_stdin

Method test_stdin

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

Source from the content-addressed store, hash-verified

1073 assert s == "hello\n"
1074
1075 def test_stdin(self) -> None:
1076 cap = capture.FDCapture(0)
1077 cap.start()
1078 x = os.read(0, 100).strip()
1079 cap.done()
1080 assert x == b""
1081
1082 def test_writeorg(self, tmpfile: BinaryIO) -> None:
1083 data1, data2 = b"foo", b"bar"

Callers

nothing calls this directly

Calls 4

stripMethod · 0.80
startMethod · 0.45
readMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected