summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-19 16:22:51 (GMT)
committerGitHub <noreply@github.com>2024-05-19 16:22:51 (GMT)
commitfdc50bac16d3f8dc693488738009de8c86baf6e0 (patch)
treeccbd7bd2d85688827bfbb156ecb6375ac3e1ba2d
parentbc5e47ccb7abf576435ed0466d7fe92bf38fd3e8 (diff)
downloadcpython-fdc50bac16d3f8dc693488738009de8c86baf6e0.zip
cpython-fdc50bac16d3f8dc693488738009de8c86baf6e0.tar.gz
cpython-fdc50bac16d3f8dc693488738009de8c86baf6e0.tar.bz2
[3.13] GH-118447: Fix FreeBSD test failures. (GH-119170) (#119181)
GH-118447: Fix FreeBSD test failures. (GH-119170) Apparently only macOS requires read permission to call `readlink()` on a symlink. (cherry picked from commit 4b7667172898d440c1931ae923446c6a5ef1765e) Co-authored-by: Barney Gale <barney.gale@gmail.com>
-rw-r--r--Lib/test/test_posixpath.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 5c27b7b..238baed 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)