diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-04-18 17:17:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 17:17:05 (GMT) |
commit | be1fe1149fd3e501ba453d9bfac4fa85cbe2edab (patch) | |
tree | c501ef41545b959e9d16732fed2b1b53264aef8b /Lib | |
parent | dd8b4d4d375635184b74c69c1a5da886839e3a5c (diff) | |
download | cpython-be1fe1149fd3e501ba453d9bfac4fa85cbe2edab.zip cpython-be1fe1149fd3e501ba453d9bfac4fa85cbe2edab.tar.gz cpython-be1fe1149fd3e501ba453d9bfac4fa85cbe2edab.tar.bz2 |
[3.12] gh-117503: Fix test for posixpath.expanduser() when pw_dir ends with / (GH-118056) (GH-118058)
(cherry picked from commit ccdcd1d95a9d6eda4df86811c4539f204beef817)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_posixpath.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index ddc0975..f08bdea 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -341,6 +341,7 @@ class PosixPathTest(unittest.TestCase): for e in pwd.getpwall(): name = e.pw_name home = e.pw_dir + home = home.rstrip('/') or '/' self.assertEqual(posixpath.expanduser('~' + name), home) self.assertEqual(posixpath.expanduser(os.fsencode('~' + name)), os.fsencode(home)) |