FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-37400: Fix test_os.test_chown() by vstinner · Pull Request #14374 · python/cpython · GitHub

Repository navigation

bpo-37400: Fix test_os.test_chown() - #14374

Merged
vstinner merged 1 commit into
python:masterfrom
vstinner:test_chown
Jun 25, 2019
Merged

vstinner merged 1 commit into
python:masterfrom
vstinner:test_chown

Conversation

vstinner commented Jun 25, 2019 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Use os.getgroups() rather than pwd.getpwall() to get groups.
Rename also test_chown() to test_chown_gid().

https://bugs.python.org/issue37400

Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().

Copy link
Copy Markdown
Member Author

Oh, grp.getgrall() was used, not pwd.getpwall(). I updated my PR.

vstinner merged commit d7c87d9 into python:master Jun 25, 2019

Copy link
Copy Markdown
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

vstinner deleted the test_chown branch June 25, 2019 15:06
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

Copy link
Copy Markdown

GH-14377 is a backport of this pull request to the 3.8 branch.

Copy link
Copy Markdown

GH-14378 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
vstinner added a commit that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL