def failure(self, exc):
        if isinstance(exc, basestring):
            exc = CatchResponseError(exc)
        
        events.request_failure.fire(
            request_type=self.locust_request_meta["method"],
            name=self.locust_request_meta["name"],
            response_time=self.locust_request_meta["response_time"],
            exception=exc,
        )
        self._is_reported = True
Should parse readResult XML.
dataset/ETHPy150Open locustio/locust/locust/clients.py/ResponseContextManager.failure--crossover with--dataset/ETHPy150Open tophatmonocle/ims_lti_py/tests/outcome_request_test.py/TestOutcomeRequest.test_parse_read_result_xml