def _driveWorker(self, worker, result, testCases, cooperate):

        def resultErrback(error, case):
            result.original.addFailure(case, error)
            return error

        def task(case):
            d = worker.run(case, result)
            d.addErrback(resultErrback, case)
            return d

        return cooperate(task(case) for case in testCases).whenDone()
Computes polynomial GCD using subresultants over a ring.
dataset/ETHPy150Open twisted/twisted/twisted/trial/_dist/disttrial.py/DistTrialRunner._driveWorker--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/dmp_rr_prs_gcd