[Python-checkins] cpython: Issue #19776: Fix test_pathlib.test_expanduser()

victor.stinner python-checkins at python.org
Sat Jan 10 09:00:46 CET 2015


https://hg.python.org/cpython/rev/63dac5212552
changeset: 94105:63dac5212552
user: Victor Stinner <victor.stinner at gmail.com>
date: Sat Jan 10 09:00:20 2015 +0100
summary:
 Issue #19776: Fix test_pathlib.test_expanduser()
Skip users with an empty home directory.
files:
 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
--- 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')
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /