def assertProcessIsRunning(self, process):
        return_code = process.poll()

        if return_code is not None:
            stdout = process.stdout.read()
            stderr = process.stderr.read()
            msg = ('Process exited with code=%s.\nStdout:\n%s\n\nStderr:\n%s' %
                   (return_code, stdout, stderr))
            self.fail(msg)
Primitive polynomial remainder sequence (PRS) in `K[x]`.
dataset/ETHPy150Open StackStorm/st2/st2tests/st2tests/base.py/IntegrationTestCase.assertProcessIsRunning--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/euclidtools.py/dup_primitive_prs