Skip to content

Commit 3e1a47b

Browse files
authored
gh-132356: Find the correct group name in test_group_no_follow_symlinks (#132357)
Find the correct group name in test_group_no_follow_symlinks
1 parent f230525 commit 3e1a47b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_pathlib/test_pathlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ def test_group_no_follow_symlinks(self):
20652065
os.chown(link, -1, gid_2, follow_symlinks=False)
20662066

20672067
expected_gid = link.stat(follow_symlinks=False).st_gid
2068-
expected_name = self._get_pw_name_or_skip_test(expected_gid)
2068+
expected_name = self._get_gr_name_or_skip_test(expected_gid)
20692069

20702070
self.assertEqual(expected_gid, gid_2)
20712071
self.assertEqual(expected_name, link.group(follow_symlinks=False))

0 commit comments

Comments
 (0)