]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 25 May 2026 18:43:23 +0000 (21:43 +0300)
committerGitHub <noreply@github.com>
Mon, 25 May 2026 18:43:23 +0000 (21:43 +0300)
commit4bdff2cc89dad8f3fa63b98dd12ba22a8b3eb6e0
treea380154227e7544734bd45de9582d228480cd762
parente2362aac3470a23ea048384024ec16f2bf866a6b
[3.15] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398)

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 46e8f7a9e794bfb0fdc5ee82348623eb2b91a0b5)
Lib/test/test_grp.py
Lib/test/test_pwd.py