Skip to content

Commit 2030241

Browse files
phobsonQuLogic
authored andcommitted
Backport of #11444 to v2.2.2-doc.
Pin pytest-timeout to fix the build.
1 parent 45a8255 commit 2030241

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,12 @@ env:
5252
- NUMPY=numpy
5353
- PANDAS=
5454
- PYPARSING=pyparsing
55-
- PYTEST='pytest!=3.3.0,>=3.2.0'
55+
# pytest-timeout master depends on pytest>=3.6. Testing with pytest 3.1 is
56+
# still supported; this is tested by the first matrix entry.
57+
- PYTEST='pytest>=3.6'
5658
- PYTEST_COV=pytest-cov
5759
- PYTEST_PEP8=
60+
- PYTEST_TIMEOUT=pytest-timeout
5861
- SPHINX=sphinx
5962
- OPENBLAS_NUM_THREADS=1
6063
- NPROC=2
@@ -77,6 +80,7 @@ matrix:
7780
- PYPARSING=pyparsing==2.0.1
7881
- PYTEST=pytest==3.1.0
7982
- PYTEST_COV=pytest-cov==2.3.1
83+
- PYTEST_TIMEOUT=pytest-timeout==1.2.1 # Newer pytest-timeouts don't support pytest <3.4.
8084
- SPHINX=sphinx==1.3
8185
- python: 3.4
8286
env: PYTHON_ARGS=-OO
@@ -169,7 +173,7 @@ install:
169173
pytest-faulthandler \
170174
$PYTEST_PEP8 \
171175
pytest-rerunfailures \
172-
pytest-timeout \
176+
$PYTEST_TIMEOUT \
173177
pytest-xdist
174178
175179
# Use the special local version of freetype for testing

0 commit comments

Comments
 (0)