tests/hghave.py
changeset 52640 24ee91ba9aa8
parent 52547 918ef1fca39e
child 52680 6ed726d1cd16
--- a/tests/hghave.py	Mon Jan 06 14:15:40 2025 -0500
+++ b/tests/hghave.py	Sun Jan 05 21:03:17 2025 -0500
@@ -252,7 +252,7 @@
         os.close(fd)
         os.remove(path)
         return True
-    except (IOError, OSError):
+    except OSError:
         return False
 
 
@@ -269,7 +269,7 @@
             exec_flags_cannot_flip = (os.stat(fn).st_mode & 0o777) == m
         finally:
             os.unlink(fn)
-    except (IOError, OSError):
+    except OSError:
         # we don't care, the user probably won't be able to commit anyway
         return False
     return not (new_file_has_exec or exec_flags_cannot_flip)