Skip to content

bpo-36234: Add more tests to PosixUidGidTests #12234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2019
Merged

bpo-36234: Add more tests to PosixUidGidTests #12234

merged 1 commit into from
Mar 11, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Mar 8, 2019

test_posix.PosixUidGidTests:

  • Add tests for invalid uid/gid type (str)
  • Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32)

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm dmalcolm@redhat.com

https://bugs.python.org/issue36234

@vstinner
Copy link
Member Author

vstinner commented Mar 8, 2019

@pablogsal @giampaolo @tirkarthi @izbyshev: Would you mind to review this change?

It might be to factorize these tests, but I chose to basically apply David's patch. I prefer boring regular Python code than overengineered factories.

@vstinner
Copy link
Member Author

vstinner commented Mar 8, 2019

See also the simpler patch for Python 2.7: PR #12235.

Copy link
Contributor

@giampaolo giampaolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

test_posix.PosixUidGidTests:

* Add tests for invalid uid/gid type (str)
* Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32)

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
@vstinner
Copy link
Member Author

Oh, I forgot to mention David in the NEWS entry. I modified my PR to add "Initial patch written by David Malcolm." to the NEWS entry.

@vstinner
Copy link
Member Author

Thanks everybody who reviewed this PR for David :-)

@vstinner vstinner merged commit 876e82b into python:master Mar 11, 2019
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@vstinner vstinner deleted the test_os_uid branch March 11, 2019 12:57
@bedevere-bot
Copy link

GH-12274 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 Mar 11, 2019
test_posix.PosixUidGidTests:

* Add tests for invalid uid/gid type (str)
* Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32)

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit 876e82b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull request Mar 11, 2019
test_posix.PosixUidGidTests:

* Add tests for invalid uid/gid type (str)
* Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32)

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit 876e82b)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
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.

7 participants