Skip to content

Commit 3105198

Browse files
committed
fix test failure on python27 and pypy
1 parent 92060b1 commit 3105198

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.moban.d/travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ python:
88
- 3.3
99
- 2.7
1010
{%endblock%}
11+
{% block custom_install %}
12+
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then pip install ipython==5.4; fi
13+
- if [[ $TRAVIS_PYTHON_VERSION == "pypy" ]]; then pip install ipython==5.4; fi
14+
{% endblock%}

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ before_install:
1313
- cd $HOME
1414
- "if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then deactivate && wget https://bitbucket.org/squeaky/portable-pypy/downloads/pypy-5.7.1-linux_x86_64-portable.tar.bz2 -O - | tar -jxf - && echo 'Setting up aliases...' && ln -s pypy-5.7.1-linux_x86_64-portable pypy2-latest && export PATH=$HOME/pypy2-latest/bin/:$PATH && virtualenv --no-site-packages --python ~/pypy2-latest/bin/pypy pypy2-env && echo 'Creating custom env...' && source pypy2-env/bin/activate && python -V; fi"
1515
- cd -
16+
- if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then pip install ipython==5.4; fi
17+
- if [[ $TRAVIS_PYTHON_VERSION == "pypy" ]]; then pip install ipython==5.4; fi
1618
- if [[ $TRAVIS_PYTHON_VERSION == "2.6" ]]; then pip install flake8==2.6.2; fi
1719
- if [[ -f min_requirements.txt && "$MINREQ" -eq 1 ]]; then
1820
mv min_requirements.txt requirements.txt ;

0 commit comments

Comments
 (0)