Commit 79ec9f0e authored by Ezio Melotti's avatar Ezio Melotti

#17809: merge with 3.3.

parents b3c5d856 ce82d57c
......@@ -261,7 +261,8 @@ class PosixPathTest(unittest.TestCase):
# expanduser should fall back to using the password database
del env['HOME']
home = pwd.getpwuid(os.getuid()).pw_dir
self.assertEqual(posixpath.expanduser("~"), home)
# $HOME can end with a trailing /, so strip it (see #17809)
self.assertEqual(posixpath.expanduser("~"), home.rstrip("/"))
def test_normpath(self):
self.assertEqual(posixpath.normpath(""), ".")
......
......@@ -660,6 +660,7 @@ Kim Knapp
Lenny Kneler
Pat Knight
Jeff Knupp
Kubilay Kocak
Greg Kochanski
Damon Kohler
Marko Kohtala
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment