Patchwork D9431: hghave: adjust the detection of `pylint` for modern versions

login
register
mail settings
Submitter phabricator
Date Nov. 27, 2020, 10:12 p.m.
Message ID <differential-rev-PHID-DREV-zvhk6mha2zqtbeupu7we-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47709/
State Superseded
Headers show

Comments

phabricator - Nov. 27, 2020, 10:12 p.m.
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  I have pylint 2.6.0 installed locally, and it only has a single space.  I have
  no idea when this changed.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9431

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -586,7 +586,7 @@ 
 
 @check("pylint", "Pylint python linter")
 def has_pylint():
-    return matchoutput("pylint --help", br"Usage:  pylint", True)
+    return matchoutput("pylint --help", br"Usage:[ ]+pylint", True)
 
 
 @check("clang-format", "clang-format C code formatter")