match: fix doctest to use bytes instead of str
Fixes doctests on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D5423
--- 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)