diff tests/hghave.py @ 49791: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 3bbf1ad850f0
children a2356e15200a
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)")