changeset 49612:38ae503b369b stable

hghave: detect newer pylint Older versions (e.g. 2.7.2) say: "Usage: pylint [options]" Newer versions (e.g. 2.15.5) say: "usage: pylint [options]"
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 12 Dec 2022 17:42:30 +0400
parents f463eb675e85
children 4658f5e67e4e
files tests/hghave.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Sat Nov 12 00:18:41 2022 +0100
+++ b/tests/hghave.py	Mon Dec 12 17:42:30 2022 +0400
@@ -612,7 +612,7 @@
 
 @check("pylint", "Pylint python linter")
 def has_pylint():
-    return matchoutput("pylint --help", br"Usage:[ ]+pylint", True)
+    return matchoutput("pylint --help", br"[Uu]sage:[ ]+pylint", True)
 
 
 @check("clang-format", "clang-format C code formatter (>= 11)")