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

Method test_stdin

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

Source from the content-addressed store, hash-verified

992 assert s == "hello\n"
993
994 def test_stdin(self) -> None:
995 cap = capture.FDCapture(0)
996 cap.start()
997 x = os.read(0, 100).strip()
998 cap.done()
999 assert x == b""
1000
1001 def test_writeorg(self, tmpfile: BinaryIO) -> None:
1002 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