https://github.com/python/cpython/commit/3e1a47bdb468d02665c137d84dd44500a557b58b
commit: 3e1a47bdb468d02665c137d84dd44500a557b58b
branch: main
author: Karolina Surma <33810531+befel...@users.noreply.github.com>
committer: barneygale <barney.g...@gmail.com>
date: 2025-04-11T15:58:39+01:00
summary:

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

files:
M Lib/test/test_pathlib/test_pathlib.py

diff --git a/Lib/test/test_pathlib/test_pathlib.py 
b/Lib/test/test_pathlib/test_pathlib.py
index 00ec17e21e235f..21bc2f9e68b811 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))

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to