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)