Skip to content

Commit 089c43f

Browse files
[3.13] gh-132356: Find the correct group name in test_group_no_follow_symlinks (GH-132357) (#132404)
gh-132356: Find the correct group name in test_group_no_follow_symlinks (GH-132357) Find the correct group name in test_group_no_follow_symlinks (cherry picked from commit 3e1a47b) Co-authored-by: Karolina Surma <[email protected]>
1 parent d8de992 commit 089c43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_pathlib/test_pathlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ def test_group_no_follow_symlinks(self):
781781
os.chown(link, -1, gid_2, follow_symlinks=False)
782782

783783
expected_gid = link.stat(follow_symlinks=False).st_gid
784-
expected_name = self._get_pw_name_or_skip_test(expected_gid)
784+
expected_name = self._get_gr_name_or_skip_test(expected_gid)
785785

786786
self.assertEqual(expected_gid, gid_2)
787787
self.assertEqual(expected_name, link.group(follow_symlinks=False))

0 commit comments

Comments
 (0)