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

Class SysCapture

src/_pytest/capture.py:310–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308
309
310class SysCapture(SysCaptureBinary):
311 EMPTY_BUFFER = "" # type: ignore[assignment]
312
313 def snap(self):
314 res = self.tmpfile.getvalue()
315 self.tmpfile.seek(0)
316 self.tmpfile.truncate()
317 return res
318
319 def writeorg(self, data):
320 self._assert_state("writeorg", ("started", "suspended"))
321 self._old.write(data)
322 self._old.flush()
323
324
325class FDCaptureBinary:

Callers 2

__init__Method · 0.85
_get_multicaptureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected