D5837: tests: use raw string in test-check-code.t

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Mon Feb 4 18:37:39 EST 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf16c03c7a3d7: tests: use raw string in test-check-code.t (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5837?vs=13764&id=13791

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

AFFECTED FILES
  tests/test-check-code.t

CHANGE DETAILS

diff --git a/tests/test-check-code.t b/tests/test-check-code.t
--- a/tests/test-check-code.t
+++ b/tests/test-check-code.t
@@ -22,7 +22,7 @@
   >>> commands = []
   >>> with open('mercurial/debugcommands.py', 'rb') as fh:
   ...     for line in fh:
-  ...         m = re.match(b"^@command\('([a-z]+)", line)
+  ...         m = re.match(br"^@command\('([a-z]+)", line)
   ...         if m:
   ...             commands.append(m.group(1))
   >>> scommands = list(sorted(commands))



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


More information about the Mercurial-devel mailing list