'The L{PyUnitResultAdapter} is only used when the result passed to
C{run} does *not* provide L{IReporter}.'

def test_dontUseAdapterWhenReporterProvidesIReporter(self):

    @implementer(IReporter)
    class StubReporter(object, ):
        '\n                                                A    reporter    which    records    data    about    calls    made    to    it.\n\n                                                @ivar    errors:    Errors    passed    to    L{addError}.\n                                                @ivar    failures:    Failures    passed    to    L{addFailure}.\n                                                '
        def __init__(self):
            self.errors = []
            self.failures = []
        def startTest(self, test):
            '\n                                                                Do    nothing.\n                                                                '
        def stopTest(self, test):
            '\n                                                                Do    nothing.\n                                                                '
        def addError(self, test, error):
            '\n                                                                Record    the    error.\n                                                                '
            self.errors.append(error)
    test = self.ErrorTest('test_foo')
    result = StubReporter()
    test.run(result)
    self.assertIsInstance(result.errors[0], Failure)
