]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398) (GH-150423)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 May 2026 19:10:25 +0000 (21:10 +0200)
committerGitHub <noreply@github.com>
Mon, 25 May 2026 19:10:25 +0000 (19:10 +0000)
commit20805238e58c6244b9c6bde2a141cdb83088bd60
tree0d7f84a3fd6e4113aedfad48cb3a8065ef0ea47e
parentab4df903649f7dc9ed1e99985523be7ab716234f
[3.13] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398) (GH-150423)

Fix tests for non-existing names and ids when getpwall()/getgrall()
don't return all users/groups.

Add tests for out-of-range uids, integer float ids, bytes names,
null-terminated names, names with surrogates, empty names, excessive
arguments.
(cherry picked from commit 4bdff2cc89dad8f3fa63b98dd12ba22a8b3eb6e0)
(cherry picked from commit 46e8f7a9e794bfb0fdc5ee82348623eb2b91a0b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_grp.py
Lib/test/test_pwd.py