tests/hghave.py
changeset 31413 aa797bd54f44
parent 30559 d83ca854fa21
child 31576 07f0cddb0594
equal deleted inserted replaced
31412:ecc87acb4d10 31413:aa797bd54f44
   409 
   409 
   410 @check("pyflakes", "Pyflakes python linter")
   410 @check("pyflakes", "Pyflakes python linter")
   411 def has_pyflakes():
   411 def has_pyflakes():
   412     return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"",
   412     return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"",
   413                        br"<stdin>:1: 're' imported but unused",
   413                        br"<stdin>:1: 're' imported but unused",
       
   414                        True)
       
   415 
       
   416 @check("pylint", "Pylint python linter")
       
   417 def has_pylint():
       
   418     return matchoutput("pylint --help",
       
   419                        br"Usage:  pylint",
   414                        True)
   420                        True)
   415 
   421 
   416 @check("pygments", "Pygments source highlighting library")
   422 @check("pygments", "Pygments source highlighting library")
   417 def has_pygments():
   423 def has_pygments():
   418     try:
   424     try: