8000 gh-103363: Add follow_symlinks argument to `pathlib.Path.owner()` and `group()` by kamilturek · Pull Request #107962 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103363: Add follow_symlinks argument to pathlib.Path.owner() and group() #107962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Dec 4, 2023
Prev Previous commit
Next Next commit
Use correct method in test
  • Loading branch information
kamilturek committed Aug 15, 2023
commit cebcbc0f82eec4d790eca102f643e7917ec83631
2 changes: 1 addition & 1 deletion Lib/test/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2644,7 +2644,7 @@ def test_group_no_follow_symlinks(self):
expected_gid = link.stat(follow_symlinks=False).st_gid
expected_name = self._get_pw_name_or_skip_test(expected_gid)

self.assertEqual(expected_name, link.owner(follow_symlinks=False))
self.assertEqual(expected_name, link.group(follow_symlinks=False))

def test_unlink(self):
p = self.cls(BASE) / 'fileA'
Expand Down
0