diff mercurial/match.py @ 40947:9e462fb88f79

match: fix doctest to use bytes instead of str Fixes doctests on Python 3. Differential Revision: https://phab.mercurial-scm.org/D5423
author Augie Fackler <augie@google.com>
date Fri, 14 Dec 2018 11:37:50 -0500
parents 3984409e144b
children 074c72a38423
line wrap: on
line diff
--- 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)