changeset 41547:f16c03c7a3d7

tests: use raw string in test-check-code.t To avoid a SyntaxWarning on Python 3.8 due to invalid \ escape. Differential Revision: https://phab.mercurial-scm.org/D5837
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 04 Feb 2019 14:00:57 -0800
parents 20e62312e016
children 6dae1f31c6c9
files tests/test-check-code.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-code.t	Mon Feb 04 09:47:13 2019 -0800
+++ b/tests/test-check-code.t	Mon Feb 04 14:00:57 2019 -0800
@@ -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))