diff -r 87976d72fd5c Lib/test/test_pathlib.py --- a/Lib/test/test_pathlib.py Tue Jan 06 11:51:06 2015 +0100 +++ b/Lib/test/test_pathlib.py Tue Jan 06 12:16:41 2015 +0100 @@ -1983,7 +1983,7 @@ class PosixPathTest(_BasePathTest, unitt for pwdent in pwd.getpwall(): othername = pwdent.pw_name otherhome = pwdent.pw_dir.rstrip('/') - if othername != username: + if othername != username and otherhome: break p1 = P('~/Documents')