patch hashlib

This commit is contained in:
Travis CI 2015-08-24 23:25:55 +02:00
parent c378cb8eba
commit 64f462882d

View file

@ -32,6 +32,9 @@ before_install:
# add the two environments to the path
- export PATH=/home/travis/miniconda/envs/my_py3.4/bin:$PATH
- export PATH=/home/travis/miniconda/envs/my_py2.7/bin:$PATH
# hack to circumvent errors in tests
- sed -i -- 's/except ImportError:/except:/g' /home/travis/miniconda/envs/my_py3.4/lib/python2.7/hashlib.py
- sed -i -- 's/except ImportError:/except:/g' /home/travis/miniconda/envs/my_py3.4/lib/python3.4/hashlib.py
# activate the correct environment
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then source activate my_py2.7; fi
- if [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then source activate my_py3.4; fi