We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd8b4d4 commit be1fe11Copy full SHA for be1fe11
Lib/test/test_posixpath.py
@@ -341,6 +341,7 @@ def test_expanduser_pwd2(self):
341
for e in pwd.getpwall():
342
name = e.pw_name
343
home = e.pw_dir
344
+ home = home.rstrip('/') or '/'
345
self.assertEqual(posixpath.expanduser('~' + name), home)
346
self.assertEqual(posixpath.expanduser(os.fsencode('~' + name)),
347
os.fsencode(home))
0 commit comments