From: Barney Gale Date: Sun, 19 May 2024 15:39:00 +0000 (+0100) Subject: GH-118447: Fix FreeBSD test failures. (#119170) X-Git-Tag: v3.14.0a1~1874 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4b7667172898d440c1931ae923446c6a5ef1765e;p=thirdparty%2FPython%2Fcpython.git GH-118447: Fix FreeBSD test failures. (#119170) Apparently only macOS requires read permission to call `readlink()` on a symlink. --- diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 5c27b7bee8f6..238baed5efa2 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -663,6 +663,7 @@ class PosixPathTest(unittest.TestCase): @os_helper.skip_unless_symlink @skip_if_ABSTFN_contains_backslash @unittest.skipIf(os.chmod not in os.supports_follow_symlinks, "Can't set symlink permissions") + @unittest.skipIf(sys.platform != "darwin", "only macOS requires read permission to readlink()") def test_realpath_unreadable_symlink(self): try: os.symlink(ABSTFN+"1", ABSTFN)