branch | stable |
changeset 1311 | 1fed120bfa04 |
parent 1303 | 94e35118a756 |
child 1323 | aeb658c7dbc7 |
--- 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\"",