def parseoutcomes(self):
        """ Return a dictionary of outcomestring->num from parsing
        the terminal output that the test process produced."""
        for line in reversed(self.outlines):
            if 'seconds' in line:
                outcomes = rex_outcome.findall(line)
                if outcomes:
                    d = {}
                    for num, cat in outcomes:
                        d[cat] = int(num)
                    return d
dataset/ETHPy150Open pytest-dev/pytest/_pytest/pytester.py/RunResult.parseoutcomes/original