[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 3e1a47bdb4)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2025-04-11 17:24:16 +02:00 committed by GitHub
parent d8de992de2
commit 089c43f160
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -781,7 +781,7 @@ def test_group_no_follow_symlinks(self):
os.chown(link, -1, gid_2, follow_symlinks=False)
expected_gid = link.stat(follow_symlinks=False).st_gid
expected_name = self._get_pw_name_or_skip_test(expected_gid)
expected_name = self._get_gr_name_or_skip_test(expected_gid)
self.assertEqual(expected_gid, gid_2)
self.assertEqual(expected_name, link.group(follow_symlinks=False))