def test_pyunitAddError(self):
        # pyunit passes an exc_info tuple directly to addError
        try:
            raise RuntimeError('foo')
        except __HOLE__ as e:
            excValue = e
            self.result.addError(self, sys.exc_info())
        failure = self.result.errors[0][1]
        self.assertEqual(excValue, failure.value)
        self.assertEqual(RuntimeError, failure.type)
dataset/ETHPy150Open twisted/twisted/twisted/trial/test/test_reporter.py/TestResultTests.test_pyunitAddError