Stop an active patch.
(self)
| 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 | |
| 2007 | def _clear_dict(in_dict): |