def tearDown(self): got_request_exception.disconnect(self._on_request_exception) self.exceptions = []