commit | e9694398625f2c82c078aed4d891987474a87e0e | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@gmail.com> | Sat Jan 10 09:00:20 2015 +0100 |
committer | Victor Stinner <victor.stinner@gmail.com> | Sat Jan 10 09:00:20 2015 +0100 |
tree | fd24e2af6c4dfbac83317ec2a21992ec191631be | |
parent | 645f896536e09baaa5151007b93931461509d5ca [diff] |
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 1beb84d..2e97a5e 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py
@@ -1983,7 +1983,7 @@ 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')