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

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