def __exit__(self, exc_type, exc_val, exc_tb):
        """ Ending a context manager. """
        for patcher in self.patchers:
            patcher.__exit__(exc_type, exc_val, exc_tb)
def __exit__ ( self , exc_type , exc_val , exc_tb ) : for patcher in self . patchers : patcher . __exit__ ( exc_type , exc_val , exc_tb )
Ending a context manager.