Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ test_hook
Function
test_hook
Lib/test/test_doctest/test_doctest.py:3256–3261 ·
view source on GitHub ↗
(pathdir)
Source
from the content-addressed store, hash-verified
3254
3255
@contextlib.contextmanager
3256
def
test_hook(pathdir):
3257
hook = TestHook(pathdir)
3258
try
:
3259
yield
hook
3260
finally:
3261
hook.remove()
3262
3263
3264
def
test_lineendings(): r
""
"
Callers
nothing calls this directly
Calls
2
remove
Method · 0.95
TestHook
Class · 0.70
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…