From e9694398625f2c82c078aed4d891987474a87e0e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 10 Jan 2015 09:00:20 +0100 Subject: [PATCH] Issue #19776: Fix test_pathlib.test_expanduser() Skip users with an empty home directory. --- Lib/test/test_pathlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 1beb84d87c..2e97a5e2de 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -1983,7 +1983,7 @@ class PosixPathTest(_BasePathTest, unittest.TestCase): 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') -- 2.40.0