https://github.com/python/cpython/commit/5b07c6eb89c5a70f70ff5564d3fdaf96442b7a93
commit: 5b07c6eb89c5a70f70ff5564d3fdaf96442b7a93
branch: main
author: Zachary Ware <[email protected]>
committer: zware <[email protected]>
date: 2025-05-06T05:58:38Z
summary:
gh-81793: Replace skip decorators with specific helpers (GH-133493)
files:
M Lib/test/test_posix.py
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index b6a07f214fad49..0817d0a87a38b1 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -1521,8 +1521,8 @@ def test_pidfd_open(self):
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'))
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]