]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-81793: Replace skip decorators with specific helpers (GH-133493)
authorZachary Ware <zach@python.org>
Tue, 6 May 2025 05:58:38 +0000 (00:58 -0500)
committerGitHub <noreply@github.com>
Tue, 6 May 2025 05:58:38 +0000 (05:58 +0000)
Lib/test/test_posix.py

index b6a07f214fad49efd1e4993766c45ecc8a9ce97f..0817d0a87a38b1918280bfe6aeae3b03f7b92c7f 100644 (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'))