##// END OF EJS Templates
tests: check availability of pyflakes by trying to import pyflakes module...
Manuel Jacob -
r44987:aa0e1341 default
parent child Browse files
Show More
@@ -574,11 +574,14 b' def has_root():'
574
574
575 @check("pyflakes", "Pyflakes python linter")
575 @check("pyflakes", "Pyflakes python linter")
576 def has_pyflakes():
576 def has_pyflakes():
577 return matchoutput(
577 try:
578 "sh -c \"echo 'import re' 2>&1 | $PYTHON -m pyflakes\"",
578 import pyflakes
579 br"<stdin>:1: 're' imported but unused",
579
580 True,
580 pyflakes.__version__
581 )
581 except ImportError:
582 return False
583 else:
584 return True
582
585
583
586
584 @check("pylint", "Pylint python linter")
587 @check("pylint", "Pylint python linter")
General Comments 0
You need to be logged in to leave comments. Login now