test-command-template: glob out detailed "invalid escape" message
authorYuya Nishihara <yuya@tcha.org>
Thu, 01 Mar 2018 18:25:19 -0500
changeset 36635 e80f8a134731
parent 36634 cafd0586876b
child 36636 c263c684da91
test-command-template: glob out detailed "invalid escape" message Python 3 also reports the position where an invalid escape found.
contrib/python3-whitelist
tests/test-command-template.t
--- a/contrib/python3-whitelist	Thu Mar 01 08:14:54 2018 -0500
+++ b/contrib/python3-whitelist	Thu Mar 01 18:25:19 2018 -0500
@@ -36,6 +36,7 @@
 test-clone-pull-corruption.t
 test-clone-r.t
 test-clone-update-order.t
+test-command-template.t
 test-commit-amend.t
 test-commit-unresolved.t
 test-commit.t
--- 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: