[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>