Mercurial > public > mercurial-scm > hg-stable
diff tests/hghave.py @ 36688:dc11f257ad1d
hghave: fix up clang-libfuzzer regex to be bytes
Fixes this check on Python 3.
# skip-blame just a b prefix
Differential Revision: https://phab.mercurial-scm.org/D2607
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 03 Mar 2018 16:38:17 -0500 |
parents | 67cead0eb671 |
children | 7834927f0243 |
line wrap: on
line diff
--- a/tests/hghave.py Sat Mar 03 15:41:12 2018 -0500 +++ b/tests/hghave.py Sat Mar 03 16:38:17 2018 -0500 @@ -703,7 +703,7 @@ @check("clang-libfuzzer", "clang new enough to include libfuzzer") def has_clang_libfuzzer(): - mat = matchoutput('clang --version', 'clang version (\d)') + mat = matchoutput('clang --version', b'clang version (\d)') if mat: # libfuzzer is new in clang 6 return int(mat.group(1)) > 5