Files
pytest2/changelog/11875.bugfix.rst
Russell Martin 14d3707818 Catch OSError from getpass.getuser() (#11875)
- 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`.

Fixes #11874
2024-01-28 23:07:18 -03:00

2 lines
69 B
ReStructuredText

Correctly handle errors from :func:`getpass.getuser` in Python 3.13.