Skip to content

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

Merged
vstinner merged 1 commit intopython:3.6from
vstinner:expanduser36
Dec 5, 2018
Merged

[3.6] bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919)#10925
vstinner merged 1 commit intopython:3.6from
vstinner:expanduser36

Conversation

@vstinner
Copy link
Copy Markdown
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