]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228) (#121231)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 1 Jul 2024 16:05:30 +0000 (18:05 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jul 2024 16:05:30 +0000 (16:05 +0000)
commitdec9d916d2f620b15f570dfce7ace94f0fe3bc38
tree5a8437a0601e5cf36df9b2d634ddb831f2708290
parente2a97d1db0a1e82e1e2841e2cea7d493debc5424
[3.12] gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228) (#121231)

gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
(cherry picked from commit 02cb5fdee391670d63b2fc0a92ca9b36a32ac95a)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_posixpath.py
Misc/NEWS.d/next/Tests/2024-07-01-16-15-06.gh-issue-121200.4Pc-gc.rst [new file with mode: 0644]