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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9694398625f2c82c078aed4d891987474a87e0e;p=thirdparty%2FPython%2Fcpython.git 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 1beb84d87c56..2e97a5e2de1a 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')