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)