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

Method with_custom_patch

Lib/test/test_unittest/testmock/testpatch.py:1757–1762  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

1755 stop = __exit__
1756
1757 def with_custom_patch(target):
1758 getter, attribute = _get_target(target)
1759 return custom_patch(
1760 getter, attribute, DEFAULT, None, False, None,
1761 None, None, {}
1762 )
1763
1764 @with_custom_patch('squizz.squozz')
1765 def test(mock):

Callers

nothing calls this directly

Calls 2

_get_targetFunction · 0.90
custom_patchClass · 0.85

Tested by

no test coverage detected