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

Method stop

Lib/unittest/mock.py:1672–1680  ·  view source on GitHub ↗

Stop an active patch.

(self)

Source from the content-addressed store, hash-verified

1670
1671
1672 def stop(self):
1673 """Stop an active patch."""
1674 try:
1675 self._active_patches.remove(self)
1676 except ValueError:
1677 # If the patch hasn't been started this will fail
1678 return None
1679
1680 return self.__exit__(None, None, None)
1681
1682
1683

Callers 15

$iFunction · 0.45
aFunction · 0.45
cFunction · 0.45
GiFunction · 0.45
lFunction · 0.45
d3.min.jsFile · 0.45
YtFunction · 0.45
uFunction · 0.45
sFunction · 0.45
jeFunction · 0.45
uFunction · 0.45

Calls 2

__exit__Method · 0.95
removeMethod · 0.45

Tested by 1

cleanupMethod · 0.36