Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a3467d0

Browse files
committed
On 2.7, run tests on oldest documented supported pytest and pytest-cov.
... to make sure that they are indeed supported.
1 parent 201d536 commit a3467d0

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.travis.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,25 @@ env:
4343
- secure: RgJI7BBL8aX5FTOQe7xiXqWHMxWokd6GNUWp1NUV2mRLXPb9dI0RXqZt3UJwKTAzf1z/OtlHDmEkBoTVK81E9iUxK5npwyyjhJ8yTJmwfQtQF2n51Q1Ww9p+XSLORrOzZc7kAo6Kw6FIXN1pfctgYq2bQkrwJPRx/oPR8f6hcbY=
4444
- secure: E7OCdqhZ+PlwJcn+Hd6ns9TDJgEUXiUNEI0wu7xjxB2vBRRIKtZMbuaZjd+iKDqCKuVOJKu0ClBUYxmgmpLicTwi34CfTUYt6D4uhrU+8hBBOn1iiK51cl/aBvlUUrqaRLVhukNEBGZcyqAjXSA/Qsnp2iELEmAfOUa92ZYo1sk=
4545
- secure: "dfjNqGKzQG5bu3FnDNwLG8H/C4QoieFo4PfFmZPdM2RY7WIzukwKFNT6kiDfOrpwt+2bR7FhzjOGlDECGtlGOtYPN8XuXGjhcP4a4IfakdbDfF+D3NPIpf5VlE6776k0VpvcZBTMYJKNFIMc7QPkOwjvNJ2aXyfe3hBuGlKJzQU="
46+
- MOCK=
47+
- NOSE=
4648
- NUMPY=numpy
47-
- OPENBLAS_NUM_THREADS=1
4849
- PANDAS=
50+
- PYTEST=pytest
51+
- PYTEST_COV=pytest-cov
52+
- OPENBLAS_NUM_THREADS=1
4953
- NPROC=2
5054
- INSTALL_PEP8=
5155
- RUN_PEP8=
52-
- NOSE=
5356
- PYTEST_ARGS="-rawR --maxfail=50 --timeout=300 --durations=25 --cov-report= --cov=lib -n $NPROC"
5457
- PYTHON_ARGS=
5558
- DELETE_FONT_CACHE=
5659

5760
matrix:
5861
include:
5962
- python: 2.7
60-
env: MOCK=mock NUMPY=numpy==1.7.1 PANDAS=pandas NOSE=nose
63+
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124.
64+
env: MOCK=mock NOSE=nose NUMPY=numpy==1.7.1 PANDAS=pandas PYTEST=pytest==3.0.0 PYTEST_COV=pytest-cov==2.3.1
6165
- python: 3.4
6266
env: PYTHON_ARGS=-OO
6367
- python: 3.6
@@ -108,17 +112,19 @@ install:
108112
# Upgrade pip and setuptools and wheel to get as clean an install as possible
109113
pip install --upgrade pip setuptools wheel
110114
- |
111-
# Install dependencies from pypi
115+
# Install dependencies from PyPI
112116
pip install --upgrade $PRE \
117+
codecov \
118+
coverage \
119+
cycler \
113120
$MOCK \
114121
$NOSE \
115122
$NUMPY \
116123
$PANDAS \
117-
codecov \
118-
coverage \
119-
cycler \
120124
pillow \
121125
pyparsing!=2.1.6 \
126+
$PYTEST \
127+
$PYTEST_COV \
122128
python-dateutil \
123129
sphinx
124130
# GUI toolkits are pip-installable only for some versions of Python so
@@ -137,7 +143,6 @@ install:
137143
echo 'wxPython is available' ||
138144
echo 'wxPython is not available'
139145
140-
# pytest-cov>=2.3.1 due to https://github.com/pytest-dev/pytest-cov/issues/124
141146
pip install $PRE \
142147
pytest \
143148
pytest-cov>=2.3.1 \

doc/devel/testing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ local FreeType build
2626

2727
The following software is required to run the tests:
2828

29-
- pytest_, version 3.0.0 or later
29+
- pytest_ (>=3.0.0)
3030
- mock_, when running Python versions < 3.3
3131
- Ghostscript_ (to render PDF files)
3232
- Inkscape_ (to render SVG files)
3333

3434
Optionally you can install:
3535

36-
- pytest-cov_ to collect coverage information
36+
- pytest-cov_ (>=2.3.1) to collect coverage information
3737
- pytest-pep8_ to test coding standards
3838
- pytest-timeout_ to limit runtime in case of stuck tests
3939
- pytest-xdist_ to run tests in parallel

0 commit comments

Comments
 (0)