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

Method read

src/_pytest/capture.py:228–231  ·  view source on GitHub ↗
(self, size: int = -1)

Source from the content-addressed store, hash-verified

226 return sys.__stdin__.encoding
227
228 def read(self, size: int = -1) -> str:
229 raise OSError(
230 "pytest: reading from stdin while output is captured! Consider using `-s`."
231 )
232
233 readline = read
234

Callers 4

test_dontreadfrominputFunction · 0.95
snapMethod · 0.45
snapMethod · 0.45
snapMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_dontreadfrominputFunction · 0.76