]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-132356: Find the correct group name in test_group_no_follow_symlinks (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 11 Apr 2025 15:24:16 +0000 (17:24 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Apr 2025 15:24:16 +0000 (15:24 +0000)
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 3e1a47bdb468d02665c137d84dd44500a557b58b)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
Lib/test/test_pathlib/test_pathlib.py

index 1f01ce40da3c88d87999eeec3365ec0f1b73e7f4..2b9aad14263c277d9c8b7cb0ea18be5b687c62e9 100644 (file)
@@ -781,7 +781,7 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
         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))