Merge pull request #790 from ZyX-I/tests-fix

Fix travis CI build
This commit is contained in:
ZyX-I 2014-02-09 00:31:44 +03:00
commit b5c14553a9
2 changed files with 4 additions and 2 deletions

View File

@ -101,8 +101,9 @@ def cwd(pl, segment_info, dir_shorten_len=None, dir_limit_depth=None, use_path_s
cwd = "[not found]"
else:
raise
home = u(segment_info['home'])
home = segment_info['home']
if home:
home = u(home)
cwd = re.sub('^' + re.escape(home), '~', cwd, 1)
cwd_split = cwd.split(os.sep)
cwd_split_len = len(cwd_split)

View File

@ -3,7 +3,8 @@ pip install .
pip install psutil
if python -c 'import sys; sys.exit(1 * (sys.version_info[0] != 2))' ; then
# Python 2
pip install mercurial bzr
pip install mercurial
pip install --allow-external bzr --allow-unverified bzr bzr
if python -c 'import sys; sys.exit(1 * (sys.version_info[1] >= 7))' ; then
# Python 2.6
pip install unittest2 argparse