summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_posixpath.py1
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))