]> granicus.if.org Git - python/commit
bpo-37400: Fix test_os.test_chown() (GH-14374)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 25 Jun 2019 15:26:56 +0000 (08:26 -0700)
committerGitHub <noreply@github.com>
Tue, 25 Jun 2019 15:26:56 +0000 (08:26 -0700)
commit12d174bed9960ded1d072035c57f82e10a89f0d6
tree604dab2dfa98faea35b40f5b7ccb31de9062d7dc
parent25fbe33b92cd938e809839feaa3fda97e6ad0980
bpo-37400: Fix test_os.test_chown() (GH-14374)

Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d982d4ec4ba201bcee14324ae5e0e90581f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/test/test_os.py
Misc/NEWS.d/next/Tests/2019-06-25-16-02-43.bpo-37400.cx_EWv.rst [new file with mode: 0644]