https://github.com/python/cpython/commit/fdc50bac16d3f8dc693488738009de8c86baf6e0
commit: fdc50bac16d3f8dc693488738009de8c86baf6e0
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: barneygale <[email protected]>
date: 2024-05-19T16:22:51Z
summary:

[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 <[email protected]>

files:
M Lib/test/test_posixpath.py

diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py
index 5c27b7bee8f60e..238baed5efa264 100644
--- a/Lib/test/test_posixpath.py
+++ b/Lib/test/test_posixpath.py
@@ -663,6 +663,7 @@ def test_realpath_resolve_first(self):
     @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)

_______________________________________________
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]

Reply via email to