diff tests/test-command-template.t @ 36664:e80f8a134731

test-command-template: glob out detailed "invalid escape" message Python 3 also reports the position where an invalid escape found.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 01 Mar 2018 18:25:19 -0500
parents 086fc71fbb09
children 80d7fb6c2dec
line wrap: on
line diff
--- a/tests/test-command-template.t	Thu Mar 01 08:14:54 2018 -0500
+++ b/tests/test-command-template.t	Thu Mar 01 18:25:19 2018 -0500
@@ -4438,7 +4438,7 @@
   hg: parse error: trailing \ in string
   [255]
   $ hg log -T "\\xy" -R a
-  hg: parse error: invalid \x escape
+  hg: parse error: invalid \x escape* (glob)
   [255]
 
 json filter should escape HTML tags so that the output can be embedded in hgweb: