Skip to content

Add regression test for get_user() OSError handling#14506

Open
EternalRights wants to merge 5 commits into
pytest-dev:mainfrom
EternalRights:test-get-user-oserror
Open

Add regression test for get_user() OSError handling#14506
EternalRights wants to merge 5 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
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants