From bc8637f469292a1eb5819578451727aa73d87cf9 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Thu, 10 Apr 2025 13:46:25 +0200 Subject: [PATCH] Find the correct group name in test_group_no_follow_symlinks --- Lib/test/test_pathlib/test_pathlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pathlib/test_pathlib.py b/Lib/test/test_pathlib/test_pathlib.py index b1fcc5f6f0538e..3cfffc6311856d 100644 --- a/Lib/test/test_pathlib/test_pathlib.py +++ b/Lib/test/test_pathlib/test_pathlib.py @@ -2065,7 +2065,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))