py3: add b'' prefix to make the regex bytes
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 09 Jun 2018 15:01:04 +0530
changeset 38251 47b9240615ca
parent 38250 d0abd7949ea3
child 38252 a4aa77b84efd
py3: add b'' prefix to make the regex bytes # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3705
tests/run-tests.py
--- a/tests/run-tests.py	Tue Jun 05 02:50:25 2018 +0200
+++ b/tests/run-tests.py	Sat Jun 09 15:01:04 2018 +0530
@@ -2646,7 +2646,7 @@
                 expanded_args.append(arg)
         args = expanded_args
 
-        testcasepattern = re.compile(r'([\w-]+\.t|py)(#([^\s]+))')
+        testcasepattern = re.compile(br'([\w-]+\.t|py)(#([^\s]+))')
         tests = []
         for t in args:
             case = None