Skip to content
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

Similar to test_grp in test_pwd, add a test with null value in name #95376

Closed
Yaminyam opened this issue Jul 28, 2022 · 2 comments
Closed

Similar to test_grp in test_pwd, add a test with null value in name #95376

Yaminyam opened this issue Jul 28, 2022 · 2 comments
Labels
tests Tests in the Lib/test dir

Comments

@Yaminyam
Copy link
Contributor

Both getpwnam(name) and getgrnam(name) should return ValueErr if null is entered in the name value
In test_grp, the part is being tested, but in test_pwd, the part is not being tested.
Is it ok to write a PR that adds that test?

@Yaminyam Yaminyam added the type-bug An unexpected behavior, bug, or error label Jul 28, 2022
@mdboom
Copy link
Contributor

mdboom commented Jul 28, 2022

Yes, I think a PR to add that test would be quite welcome. Thanks.

@mdboom mdboom added tests Tests in the Lib/test dir and removed type-bug An unexpected behavior, bug, or error labels Jul 28, 2022
@ambv ambv added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes and removed needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Aug 5, 2022
ambv pushed a commit that referenced this issue Aug 6, 2022
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 6, 2022
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit a17cd47)

Co-authored-by: Sion Kang <31057849+Yaminyam@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Aug 6, 2022
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit a17cd47)

Co-authored-by: Sion Kang <31057849+Yaminyam@users.noreply.github.com>
ambv pushed a commit that referenced this issue Aug 6, 2022
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit a17cd47)

Co-authored-by: Sion Kang <31057849+Yaminyam@users.noreply.github.com>
ambv pushed a commit that referenced this issue Aug 6, 2022
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
(cherry picked from commit a17cd47)

Co-authored-by: Sion Kang <31057849+Yaminyam@users.noreply.github.com>
@ambv
Copy link
Contributor

ambv commented Aug 6, 2022

This is now fixed in 3.10 - 3.12. Thanks! ✨ 🍰 ✨

@ambv ambv closed this as completed Aug 6, 2022
iritkatriel pushed a commit to iritkatriel/cpython that referenced this issue Aug 11, 2022
Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.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

No branches or pull requests

3 participants