Skip to content

Commit 4b76671

Browse files
authored
GH-118447: Fix FreeBSD test failures. (#119170)
Apparently only macOS requires read permission to call `readlink()` on a symlink.
1 parent 5307f44 commit 4b76671

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_posixpath.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ def test_realpath_resolve_first(self):
663663
@os_helper.skip_unless_symlink
664664
@skip_if_ABSTFN_contains_backslash
665665
@unittest.skipIf(os.chmod not in os.supports_follow_symlinks, "Can't set symlink permissions")
666+
@unittest.skipIf(sys.platform != "darwin", "only macOS requires read permission to readlink()")
666667
def test_realpath_unreadable_symlink(self):
667668
try:
668669
os.symlink(ABSTFN+"1", ABSTFN)

0 commit comments

Comments
 (0)