# HG changeset patch # User Patrick Mezard # Date 1186694092 -7200 # Node ID bf60e4bd66729a687cb73d489ea9b886506cffa2 # Parent 9b5ae133bd5a3adfbb316b5bdf8ba8428c940f5e hghave: prefix temporary files with "hg-hghave-" diff -r 9b5ae133bd5a -r bf60e4bd6672 tests/hghave --- a/tests/hghave Thu Aug 09 23:14:50 2007 +0200 +++ b/tests/hghave Thu Aug 09 23:14:52 2007 +0200 @@ -8,6 +8,8 @@ import sys import tempfile +tempprefix = 'hg-hghave-' + def has_symlink(): return hasattr(os, "symlink") @@ -15,7 +17,7 @@ return hasattr(os, "mkfifo") def has_executablebit(): - fd, path = tempfile.mkstemp() + fd, path = tempfile.mkstemp(prefix=tempprefix) os.close(fd) try: s = os.lstat(path).st_mode @@ -26,7 +28,7 @@ def has_eol_in_paths(): try: - fd, path = tempfile.mkstemp(suffix='\n\r') + fd, path = tempfile.mkstemp(prefix=tempprefix, suffix='\n\r') os.close(fd) os.remove(path) return True