@capture_logging(
        lambda self, logger: logger.flush_tracebacks(ZeroDivisionError)
    )
    def test_first_error_value(self, logger):
        failure1 = Failure(ZeroDivisionError('failure1'))
        failure2 = Failure(ZeroDivisionError('failure1'))

        d = gather_deferreds([fail(failure1), succeed(None), fail(failure2)])

        first_error = self.failureResultOf(d, FirstError)
        self.assertIs(first_error.value.subFailure, failure1)
Approve this nomination.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/common/test/test_defer.py/GatherDeferredsTests.test_first_error_value--crossover with--dataset/ETHPy150Open mozilla/django-badger/badger/models.py/Nomination.approve_by