Patchwork D3705: py3: add b'' prefix to make the regex bytes

login
register
mail settings
Submitter phabricator
Date June 10, 2018, 2:20 a.m.
Message ID <df3b319361e77e2cd7448afc8b42cfbb@localhost.localdomain>
Download mbox | patch
Permalink /patch/32044/
State Not Applicable
Headers show

Comments

phabricator - June 10, 2018, 2:20 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG47b9240615ca: py3: add b&#039;&#039; prefix to make the regex bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3705?vs=9002&id=9004

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

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




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

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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