Stop an active patch.
(self)
| 1663 | |
| 1664 | |
| 1665 | def stop(self): |
| 1666 | """Stop an active patch.""" |
| 1667 | try: |
| 1668 | self._active_patches.remove(self) |
| 1669 | except ValueError: |
| 1670 | # If the patch hasn't been started this will fail |
| 1671 | return None |
| 1672 | |
| 1673 | return self.__exit__(None, None, None) |
| 1674 | |
| 1675 | |
| 1676 |
no test coverage detected