diff -r 459c0537273b -r 4e0cef7a70cf tests/hghave --- a/tests/hghave Tue May 08 15:46:51 2012 -0500 +++ b/tests/hghave Sat May 12 15:54:54 2012 +0200 @@ -165,7 +165,8 @@ return False def has_p4(): - return matchoutput('p4 -V', r'Rev\. P4/') and matchoutput('p4d -V', r'Rev\. P4D/') + return (matchoutput('p4 -V', r'Rev\. P4/') and + matchoutput('p4d -V', r'Rev\. P4D/')) def has_symlink(): if not hasattr(os, "symlink"):