branch | stable |
changeset 1100 | 59a99457aa65 |
parent 1099 | 55c85631631b |
child 1101 | 89f984505cbb |
--- a/tests/hghave.py Fri Jun 15 00:02:27 2012 +0200 +++ b/tests/hghave.py Fri Jun 15 00:02:27 2012 +0200 @@ -100,7 +100,15 @@ return False def has_fifo(): - return getattr(os, "mkfifo", None) is not None + if getattr(os, "mkfifo", None) is None: + return False + name = tempfile.mktemp(dir='.', prefix=tempprefix) + try: + os.mkfifo(name) + os.unlink(name) + return True + except OSError: + return False def has_cacheable_fs(): from mercurial import util