[Request] [+ ] D11906: hghave: fix the check for suid on platforms lacking support
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Mon Dec 13 06:11:54 UTC 2021
mharbison72 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The mac tests were raising an AttributeError without the default arg.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11906
AFFECTED FILES
tests/hghave.py
CHANGE DETAILS
diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -266,7 +266,10 @@
@check("suidbit", "setuid and setgid bit")
def has_suidbit():
- if getattr(os, "statvfs", None) is None or getattr(os, "ST_NOSUID") is None:
+ if (
+ getattr(os, "statvfs", None) is None
+ or getattr(os, "ST_NOSUID", None) is None
+ ):
return False
return bool(os.statvfs('.').f_flag & os.ST_NOSUID)
To: mharbison72, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211213/f6e184c5/attachment.html>
More information about the Mercurial-patches
mailing list