Mercurial > hg-stable
changeset 15435:493fffdc6398
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.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 07 Nov 2011 02:44:04 +0100 |
parents | 5635a4017061 |
children | 18f1bb70462e |
files | tests/run-tests.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/run-tests.py Mon Nov 07 13:46:41 2011 -0600 +++ 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