author | Simon Heimberg <simohe@besonet.ch> |
Sat, 23 Nov 2013 01:06:20 +0100 | |
branch | stable |
changeset 1311 | 1fed120bfa04 |
parent 1310 | 21d35cf4933e |
child 1312 | c44d24e2fc66 |
child 1313 | 2a1cad657b6d |
tests/hghave.py | file | annotate | diff | comparison | revisions |
--- a/tests/hghave.py Thu Nov 28 12:57:12 2013 +0000 +++ b/tests/hghave.py Sat Nov 23 01:06:20 2013 +0100 @@ -234,7 +234,7 @@ os.rmdir(d) def has_root(): - return os.geteuid() == 0 + return getattr(os, 'geteuid', None) and os.geteuid() == 0 def has_pyflakes(): return matchoutput("sh -c \"echo 'import re' 2>&1 | pyflakes\"",