Patchwork D5423: match: fix doctest to use bytes instead of str

login
register
mail settings
Submitter phabricator
Date Dec. 14, 2018, 5:30 p.m.
Message ID <69c75e3efaa215c1de7c900a80a7a961@localhost.localdomain>
Download mbox | patch
Permalink /patch/37152/
State Not Applicable
Headers show

Comments

phabricator - Dec. 14, 2018, 5:30 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa3e57c69d47d: match: fix doctest to use bytes instead of str (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5423?vs=12848&id=12852

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

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -1196,8 +1196,8 @@ 
 
     Test too large input
     >>> _buildregexmatch([
-    ...     ('relglob', '?' * MAX_RE_SIZE, '')
-    ... ], '$')
+    ...     (b'relglob', b'?' * MAX_RE_SIZE, b'')
+    ... ], b'$')
     Traceback (most recent call last):
     ...
     Abort: matcher pattern is too long (20009 bytes)