Skip to content

Add regression test for get_user() OSError handling#14506

Merged
bluetech merged 6 commits into
pytest-dev:mainfrom
EternalRights:test-get-user-oserror
May 24, 2026
Merged

Add regression test for get_user() OSError handling#14506
bluetech merged 6 commits into
pytest-dev:mainfrom
EternalRights:test-get-user-oserror

Conversation

@EternalRights
Copy link
Copy Markdown
Contributor

Was looking at #13835 and noticed the fix was already in main from #11875 but there wasn't an explicit test for the exact scenario - getpass.getuser() raising OSError. On Python 3.13+ this is the new default behaviour when no username can be derived.

Added a quick monkeypatch test for it.

@psf-chronographer psf-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label May 23, 2026
@bluetech bluetech added the skip news used on prs to opt out of the changelog requirement label May 24, 2026
@bluetech bluetech enabled auto-merge (squash) May 24, 2026 13:23
@bluetech bluetech merged commit 24d6e24 into pytest-dev:main May 24, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR skip news used on prs to opt out of the changelog requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants