tests/hghave
branchstable
changeset 1072 bbf056e756cc
parent 1071 f0ce3dcd5c87
child 1089 f26e9129f65b
--- 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)