# HG changeset patch # User Mads Kiilerich # Date 1320630244 -3600 # Node ID 0c737b00568d3fd84d6e6724251c8b2105dcc53d # Parent f2a62458ef8bc4471d5224d33d3ac348b0744135 tests: make '(esc)' matching in run-tests.py work as intended The code for match on (esc) lines didn't work, and it would thus always end up emitting another suggestion ... which however would match the old one. [ original upstream message ] diff -r f2a62458ef8b -r 0c737b00568d tests/run-tests.py --- a/tests/run-tests.py Wed Nov 09 13:45:20 2011 +0000 +++ b/tests/run-tests.py Mon Nov 07 02:44:04 2011 +0100 @@ -554,7 +554,8 @@ if (el and (el.endswith(" (re)\n") and rematch(el[:-6] + '\n', l) or el.endswith(" (glob)\n") and globmatch(el[:-8] + '\n', l) or - el.endswith(" (esc)\n") and el.decode('string-escape') == l)): + el.endswith(" (esc)\n") and + el[:-7].decode('string-escape') + '\n' == l)): return True return False