tests/run-tests.py
branchstable
changeset 1009 0c737b00568d
parent 1005 d86b26020b48
child 1015 0a583943b4b4
--- 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