diff --git a/tests/hghave b/tests/hghave --- a/tests/hghave +++ b/tests/hghave @@ -202,7 +202,7 @@ def has_unix_permissions(): os.rmdir(d) def has_pyflakes(): - return matchoutput('echo "import re" 2>&1 | pyflakes', + return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"", r":1: 're' imported but unused", True)