[PATCH 01 of 19] tests: make '(esc)' matching in run-tests.py work as intended
Mads Kiilerich
mads at kiilerich.com
Sun Nov 6 20:40:51 CST 2011
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1320630244 -3600
# Node ID dc5748cc3a52758789396401907403d64783e56c
# Parent f3b5ba25d21787a9e4aa5fc243ecbafc9e978e00
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.
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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
More information about the Mercurial-devel
mailing list