Skip to content

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

Closed

Description

@Yaminyam

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?

Activity

  1. mdboom commented on Jul 28, 2022

    @mdboom
    Contributor

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

  2. added
    testsTests in the Lib/test dir
    and removed
    type-bugAn unexpected behavior, bug, or error
    on Jul 28, 2022
  3. added a commit that references this issue on Aug 6, 2022
  4. added 2 commits that reference this issue on Aug 6, 2022
  5. added 2 commits that reference this issue on Aug 6, 2022
  6. ambv commented on Aug 6, 2022

    @ambv
    Contributor

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

  7. added a commit that references this issue on Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions