diff -r f0ce3dcd5c87 -r bbf056e756cc tests/hghave --- a/tests/hghave Sat May 12 16:00:53 2012 +0200 +++ b/tests/hghave Sat May 12 16:02:45 2012 +0200 @@ -60,7 +60,7 @@ os.close(fd) os.remove(path) return True - except: + except (IOError, OSError): return False def has_executablebit(): @@ -93,7 +93,7 @@ try: s2 = os.stat(p2) return s2 == s1 - except: + except OSError: return False finally: os.remove(path)