tests/hghave
branchstable
changeset 1089 f26e9129f65b
parent 1072 bbf056e756cc
child 1091 15dc93f78ecd
equal deleted inserted replaced
1088:e2d5315a6e38 1089:f26e9129f65b
   200         return True
   200         return True
   201     finally:
   201     finally:
   202         os.rmdir(d)
   202         os.rmdir(d)
   203 
   203 
   204 def has_pyflakes():
   204 def has_pyflakes():
   205     return matchoutput('echo "import re" 2>&1 | pyflakes',
   205     return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"",
   206                        r"<stdin>:1: 're' imported but unused",
   206                        r"<stdin>:1: 're' imported but unused",
   207                        True)
   207                        True)
   208 
   208 
   209 def has_pygments():
   209 def has_pygments():
   210     try:
   210     try: