def stop(self):
        """Stop an active patch."""
        try:
            self._active_patches.remove(self)
        except __HOLE__:
            # If the patch hasn't been started this will fail
            pass

        return self.__exit__()
dataset/ETHPy150Open testing-cabal/mock/mock/mock.py/_patch.stop