Skip to content

[3.6] bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) #10925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 5, 2018
Merged

[3.6] bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919) #10925

merged 1 commit into from
Dec 5, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 5, 2018

  • posixpath.expanduser() now returns the input path unchanged if
    the HOME environment variable is not set and pwd.getpwuid() raises
    KeyError (the current user identifier doesn't exist in the password
    database).
  • Add test_no_home_directory() to test_site.

(cherry picked from commit f2f4555)

https://bugs.python.org/issue10496

* posixpath.expanduser() now returns the input path unchanged if
  the HOME environment variable is not set and pwd.getpwuid() raises
  KeyError (the current user identifier doesn't exist in the password
  database).
* Add test_no_home_directory() to test_site.

(cherry picked from commit f2f4555)
@vstinner vstinner merged commit 31b635d into python:3.6 Dec 5, 2018
@vstinner vstinner deleted the expanduser36 branch December 5, 2018 16:21
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.

3 participants