match: fix doctest to use bytes instead of str
authorAugie Fackler <augie@google.com>
Fri, 14 Dec 2018 11:37:50 -0500
changeset 40947 9e462fb88f79
parent 40946 5fd63bca43a4
child 40948 a314eafd7c8d
match: fix doctest to use bytes instead of str Fixes doctests on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5423
mercurial/match.py
--- a/mercurial/match.py	Fri Dec 14 19:30:20 2018 +0300
+++ b/mercurial/match.py	Fri Dec 14 11:37:50 2018 -0500
@@ -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)