From: Victor Stinner Date: Sat, 10 Jan 2015 08:00:20 +0000 (+0100) Subject: Issue #19776: Fix test_pathlib.test_expanduser() X-Git-Tag: v3.5.0a1~200 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9694398625f2c82c078aed4d891987474a87e0e;p=python Issue #19776: Fix test_pathlib.test_expanduser() Skip users with an empty home directory. --- 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')