summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_pathlib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py
index 5321555..d1a3fba 100644
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -2142,6 +2142,9 @@ class PosixPathTest(_BasePathTest, unittest.TestCase):
otherhome = pwdent.pw_dir.rstrip('/')
if othername != username and otherhome:
break
+ else:
+ othername = username
+ otherhome = userhome
p1 = P('~/Documents')
p2 = P('~' + username + '/Documents')