changeset 36635: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 cafd0586876b
children c263c684da91
files contrib/python3-whitelist tests/test-command-template.t
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: