MCPcopy Index your code
hub / github.com/pytest-dev/pytest / readlines

Method readlines

src/_pytest/capture.py:238–241  ·  view source on GitHub ↗
(self, hint: int | None = -1)

Source from the content-addressed store, hash-verified

236 return self.readline()
237
238 def readlines(self, hint: int | None = -1) -> list[str]:
239 raise OSError(
240 "pytest: reading from stdin while output is captured! Consider using `-s`."
241 )
242
243 def __iter__(self) -> Iterator[str]:
244 return self

Callers 1

test_dontreadfrominputFunction · 0.95

Calls

no outgoing calls

Tested by 1

test_dontreadfrominputFunction · 0.76