D3621: tests: use [(] instead of \( to avoid warning on py3

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sat May 19 16:10:28 EDT 2018


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  From a recent test run of mine:
  
  run-tests.py:1633: DeprecationWarning: invalid escape sequence '\('
  
  This lets us encode the expectation without the badness.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3621

AFFECTED FILES
  tests/test-unified-test.t

CHANGE DETAILS

diff --git a/tests/test-unified-test.t b/tests/test-unified-test.t
--- a/tests/test-unified-test.t
+++ b/tests/test-unified-test.t
@@ -84,7 +84,7 @@
   foo/bar\r (no-eol) (esc)
 #endif
   $ printf 'foo/bar\rfoo/bar\r'
-  foo.bar\r \(no-eol\) (re) (esc)
+  foo.bar\r [(]no-eol[)] (re) (esc)
   foo.bar\r \(no-eol\) (re)
 
 testing hghave



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list