Skip to content

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

Merged
miss-islington merged 1 commit intopython:3.7from
miss-islington:backport-f2f4555-3.7
Dec 5, 2018
Merged

[3.7] bpo-10496: posixpath.expanduser() catchs pwd.getpwuid() error (GH-10919)#10924
miss-islington merged 1 commit intopython:3.7from
miss-islington:backport-f2f4555-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington 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)

Co-authored-by: Victor Stinner [email protected]

https://bugs.python.org/issue10496

…GH-10919)

* 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)

Co-authored-by: Victor Stinner <[email protected]>
Copy link
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM, good bot.

@miss-islington
Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 983d1ab into python:3.7 Dec 5, 2018
@miss-islington miss-islington deleted the backport-f2f4555-3.7 branch December 5, 2018 16:08
@miss-islington
Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

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.

4 participants