gh-81793: Replace skip decorators with specific helpers (GH-133493)

This commit is contained in:
Zachary Ware 2025-05-06 00:58:38 -05:00 committed by GitHub
parent 6a8f6eddd3
commit 5b07c6eb89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1521,8 +1521,8 @@ class PosixTester(unittest.TestCase):
self.assertEqual(cm.exception.errno, errno.EINVAL)
os.close(os.pidfd_open(os.getpid(), 0))
@unittest.skipUnless(hasattr(os, "link"), "test needs os.link()")
@support.skip_android_selinux('hard links to symbolic links')
@os_helper.skip_unless_hardlink
@os_helper.skip_unless_symlink
def test_link_follow_symlinks(self):
default_follow = sys.platform.startswith(
('darwin', 'freebsd', 'netbsd', 'openbsd', 'dragonfly', 'sunos5'))