Skip to content

Commit 38568b2

Browse files
befelemehroncok
authored andcommitted
00456: Find the correct group name in test_group_no_follow_symlinks
Proposed upstream: python#132357
1 parent 4faea8c commit 38568b2

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)