Mercurial > public > mercurial-scm > hg-stable
diff tests/hghave.py @ 34892:e1458bce84db
hghave: fix clang-format check to use bytes regex
Fixes hghave on Python 3.
Differential Revision: https://phab.mercurial-scm.org/D1182
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 18 Oct 2017 18:29:17 -0400 |
parents | df2ff314e36f |
children | 5d4369079c86 |
line wrap: on
line diff
--- a/tests/hghave.py Wed Oct 18 18:29:00 2017 -0400 +++ b/tests/hghave.py Wed Oct 18 18:29:17 2017 -0400 @@ -442,7 +442,7 @@ @check("clang-format", "clang-format C code formatter") def has_clang_format(): return matchoutput("clang-format --help", - r"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.") + br"^OVERVIEW: A tool to format C/C\+\+[^ ]+ code.") @check("pygments", "Pygments source highlighting library") def has_pygments():