MCPcopy 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
3256def test_hook(pathdir):
3257 hook = TestHook(pathdir)
3258 try:
3259 yield hook
3260 finally:
3261 hook.remove()
3262
3263
3264def test_lineendings(): r"""

Callers

nothing calls this directly

Calls 2

removeMethod · 0.95
TestHookClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…