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

Method truncate

src/_pytest/capture.py:270–271  ·  view source on GitHub ↗
(self, size: int | None = None)

Source from the content-addressed store, hash-verified

268 raise UnsupportedOperation("redirected stdin is pseudofile, has no tell()")
269
270 def truncate(self, size: int | None = None) -> int:
271 raise UnsupportedOperation("cannot truncate stdin")
272
273 def write(self, data: str) -> int:
274 raise UnsupportedOperation("cannot write to stdin")

Callers 7

test_dontreadfrominputFunction · 0.95
assert_contains_linesMethod · 0.80
snapMethod · 0.80
snapMethod · 0.80
snapMethod · 0.80
snapMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_dontreadfrominputFunction · 0.76
assert_contains_linesMethod · 0.64