]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-132356: Find the correct group name in test_group_no_follow_symlinks (#132357)
authorKarolina Surma <33810531+befeleme@users.noreply.github.com>
Fri, 11 Apr 2025 14:58:39 +0000 (16:58 +0200)
committerGitHub <noreply@github.com>
Fri, 11 Apr 2025 14:58:39 +0000 (15:58 +0100)
Find the correct group name in test_group_no_follow_symlinks

Lib/test/test_pathlib/test_pathlib.py

index 00ec17e21e235fd903d2ffbf61ea8104e5db0d86..21bc2f9e68b8112aaaff09eb8cd129f3bdab744f 100644 (file)
@@ -2065,7 +2065,7 @@ class PathTest(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))