Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytest-dev/pytest
/ tee_write
Function
tee_write
src/_pytest/pastebin.py:43–47 ·
view source on GitHub ↗
(s, **kwargs)
Source
from the content-addressed store, hash-verified
41
oldwrite = tr._tw.write
42
43
def
tee_write(s, **kwargs):
44
oldwrite(s, **kwargs)
45
if
isinstance(s, str):
46
s = s.encode(
"utf-8"
)
47
config.stash[pastebinfile_key].write(s)
48
49
tr._tw.write = tee_write
50
Callers
nothing calls this directly
Calls
1
write
Method · 0.45
Tested by
no test coverage detected