Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
GH-118447: Fix FreeBSD test failures.
Apparently only macOS requires read permission to call `readlink()` on a
symlink.
  • Loading branch information
barneygale committed May 19, 2024
commit f7bf985ccf3600767ee41d01da7163ec30d0cfb6
1 change: 1 addition & 0 deletions Lib/test/test_posixpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down