Author: Ronny Pfannschmidt <ronny.pfannschm...@gmx.de> Branch: refine-testrunner Changeset: r61662:4c6c90e3c69c Date: 2013-02-22 18:07 +0100 http://bitbucket.org/pypy/pypy/changeset/4c6c90e3c69c/
Log: testrunner: simplify error detection diff --git a/testrunner/util.py b/testrunner/util.py --- a/testrunner/util.py +++ b/testrunner/util.py @@ -92,9 +92,7 @@ # contains "F", "E" or "P" then it's a regular failure, otherwise # we have to report it. for line in logdata.splitlines(): - if (line.startswith('F ') or - line.startswith('E ') or - line.startswith('P ')): + if line[:2] in ('F ', 'E ', 'P '): return False return True _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit