def addExpectedFailure(self, test, error, todo=None):
        if todo is None:
            todo = makeTodo(self._DEFAULT_TODO)
        self.expectedFailures.append((test, error, todo))
Report that the given test failed, and was expected to do so.
dataset/ETHPy150Open twisted/twisted/twisted/trial/reporter.py/TestResult.addExpectedFailure