'Errors added through the L{PyUnitResultAdapter} have the same
traceback information as if there were no adapter at all, even
if the Failure that held the information has been cleaned.'

def test_tracebackFromCleanFailure(self):

    try:
        (1 / 0)
    except ZeroDivisionError:
        exc_info = sys.exc_info()
        f = Failure()
    f.cleanFailure()
    pyresult = pyunit.TestResult()
    result = PyUnitResultAdapter(pyresult)
    result.addError(self, f)
    self.assertEqual(pyresult.errors[0][1], ''.join(traceback.format_exception(*exc_info)))
