diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-10 09:00:20 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-10 09:00:20 +0100 |
commit | a36b2ee6e759b34d6a18dfd85c8382bf47cd06e8 (patch) | |
tree | 5bf2f7fac79cb0201923cff50f6d14fe899fbc11 /Lib/test/test_pathlib.py | |
parent | 169c7429c25d04f6740798eccc85da74f7badcbf (diff) | |
download | cpython-a36b2ee6e759b34d6a18dfd85c8382bf47cd06e8.tar.gz |
Issue #19776: Fix test_pathlib.test_expanduser()
Skip users with an empty home directory.
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |