Skip to content

Conversation

rmartin16
Copy link
Contributor

@rmartin16 rmartin16 commented Jan 28, 2024

- Previously, `getpass.getuser()` would leak an ImportError if the
  USERNAME environment variable was not set on Windows because the `pwd`
  module cannot be imported.
- Starting in Python 3.13.0a3, it only raises `OSError`.
@rmartin16 rmartin16 marked this pull request as ready for review January 28, 2024 23:05
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using Python 3.13.0a3+ on Windows when USERNAME env var is masked/unset, get_user() leaks OSError and breaks (at least) tmp_path usage
2 participants