From 2030241875b6cb249dee247cc3c6b1e351db7fa7 Mon Sep 17 00:00:00 2001 From: Paul Hobson Date: Mon, 18 Jun 2018 15:33:49 -0700 Subject: [PATCH] Backport of #11444 to v2.2.2-doc. Pin pytest-timeout to fix the build. --- .travis.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4973ace7027b..ceac2d221cc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,9 +52,12 @@ env: - NUMPY=numpy - PANDAS= - PYPARSING=pyparsing - - PYTEST='pytest!=3.3.0,>=3.2.0' + # pytest-timeout master depends on pytest>=3.6. Testing with pytest 3.1 is + # still supported; this is tested by the first matrix entry. + - PYTEST='pytest>=3.6' - PYTEST_COV=pytest-cov - PYTEST_PEP8= + - PYTEST_TIMEOUT=pytest-timeout - SPHINX=sphinx - OPENBLAS_NUM_THREADS=1 - NPROC=2 @@ -77,6 +80,7 @@ matrix: - PYPARSING=pyparsing==2.0.1 - PYTEST=pytest==3.1.0 - PYTEST_COV=pytest-cov==2.3.1 + - PYTEST_TIMEOUT=pytest-timeout==1.2.1 # Newer pytest-timeouts don't support pytest <3.4. - SPHINX=sphinx==1.3 - python: 3.4 env: PYTHON_ARGS=-OO @@ -169,7 +173,7 @@ install: pytest-faulthandler \ $PYTEST_PEP8 \ pytest-rerunfailures \ - pytest-timeout \ + $PYTEST_TIMEOUT \ pytest-xdist # Use the special local version of freetype for testing