Skip to content

Commit

Permalink
pythonGH-118447: Fix FreeBSD test failures. (python#119170)
Browse files Browse the repository at this point in the history
Apparently only macOS requires read permission to call `readlink()` on a
symlink.
  • Loading branch information
barneygale authored and estyxx committed Jul 17, 2024
1 parent be0335d commit cb12128
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit cb12128

Please sign in to comment.