MCPcopy Index your code
hub / github.com/python/cpython / custom_patch

Class custom_patch

Lib/test/test_unittest/testmock/testpatch.py:1751–1755  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1749 exc_info = None, None, None
1750
1751 class custom_patch(_patch):
1752 def __exit__(self, etype=None, val=None, tb=None):
1753 _patch.__exit__(self, etype, val, tb)
1754 holder.exc_info = etype, val, tb
1755 stop = __exit__
1756
1757 def with_custom_patch(target):
1758 getter, attribute = _get_target(target)

Callers 1

with_custom_patchMethod · 0.85

Calls

no outgoing calls

Tested by 1

with_custom_patchMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…