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

Method stop

Lib/unittest/mock.py:1996–2004  ·  view source on GitHub ↗

Stop an active patch.

(self)

Source from the content-addressed store, hash-verified

1994
1995
1996 def stop(self):
1997 """Stop an active patch."""
1998 try:
1999 _patch._active_patches.remove(self)
2000 except ValueError:
2001 # If the patch hasn't been started this will fail
2002 return None
2003
2004 return self.__exit__(None, None, None)
2005
2006
2007def _clear_dict(in_dict):

Callers

nothing calls this directly

Calls 2

__exit__Method · 0.95
removeMethod · 0.45

Tested by

no test coverage detected