tests: allow more detailed error message from re.compile
authorAugie Fackler <augie@google.com>
Thu, 09 Aug 2018 23:13:56 -0400
changeset 39044 83cee1af747f
parent 39043 5797b0bbdd1d
child 39045 88b04bd2cbb4
tests: allow more detailed error message from re.compile test-grep.t now passes on Python 3. Differential Revision: https://phab.mercurial-scm.org/D4240
contrib/python3-whitelist
tests/test-grep.t
--- a/contrib/python3-whitelist	Thu Aug 09 23:13:35 2018 -0400
+++ b/contrib/python3-whitelist	Thu Aug 09 23:13:56 2018 -0400
@@ -185,6 +185,7 @@
 test-glog-topological.t
 test-gpg.t
 test-graft.t
+test-grep.t
 test-hg-parseurl.py
 test-hghave.t
 test-hgignore.t
--- a/tests/test-grep.t	Thu Aug 09 23:13:35 2018 -0400
+++ b/tests/test-grep.t	Thu Aug 09 23:13:56 2018 -0400
@@ -18,7 +18,7 @@
 pattern error
 
   $ hg grep '**test**'
-  grep: invalid match pattern: nothing to repeat
+  grep: invalid match pattern: nothing to repeat* (glob)
   [1]
 
 simple