]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-37400: Fix test_os.test_chown() (GH-14374) (GH-14378)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 25 Jun 2019 20:25:01 +0000 (13:25 -0700)
committerVictor Stinner <vstinner@redhat.com>
Tue, 25 Jun 2019 20:25:01 +0000 (22:25 +0200)
commit1d4b6ba19466aba0eb91c4ba01ba509acf18c723
tree7bd8d9b3193066d1fa5a37c91f202e9c0393f862
parent01b23948038d35b119cededd149110231ecce00d
bpo-37400: Fix test_os.test_chown() (GH-14374) (GH-14378)

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]