Skip to content

[3.15] gh-80198: Improve test_pwd and test_grp (GH-150380)#150398

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
serhiy-storchaka:backport-46e8f7a-3.15
May 25, 2026
Merged

[3.15] gh-80198: Improve test_pwd and test_grp (GH-150380)#150398
serhiy-storchaka merged 1 commit into
python:3.15from
serhiy-storchaka:backport-46e8f7a-3.15

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented May 25, 2026

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 46e8f7a)

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 46e8f7a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels May 25, 2026
@bedevere-app bedevere-app Bot added the tests Tests in the Lib/test dir label May 25, 2026
@bedevere-app bedevere-app Bot mentioned this pull request May 25, 2026
@serhiy-storchaka serhiy-storchaka merged commit 4bdff2c into python:3.15 May 25, 2026
61 checks passed
@miss-islington-app
Copy link
Copy Markdown

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the backport-46e8f7a-3.15 branch May 25, 2026 18:43
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 25, 2026

GH-150422 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label May 25, 2026
@bedevere-app
Copy link
Copy Markdown

bedevere-app Bot commented May 25, 2026

GH-150423 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label May 25, 2026
serhiy-storchaka added a commit that referenced this pull request May 25, 2026
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 4bdff2c)
(cherry picked from commit 46e8f7a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
serhiy-storchaka added a commit that referenced this pull request May 25, 2026
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 4bdff2c)
(cherry picked from commit 46e8f7a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant