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

Function tee_write

src/_pytest/pastebin.py:50–54  ·  src/_pytest/pastebin.py::tee_write
(s, **kwargs)

Source from the content-addressed store, hash-verified

48 oldwrite = tr._tw.write
49
50 def tee_write(s, **kwargs):
51 oldwrite(s, **kwargs)
52 if isinstance(s, str):
53 s = s.encode(class="st">"utf-8")
54 config.stash[pastebinfile_key].write(s)
55
56 tr._tw.write = tee_write
57

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected