Skip to content

Commit 5d24968

Browse files
committed
Only test numpy with py27 and py35.
Travis was not successfully installing numpy with python<=2.6, python<=3.3, or PyPy. I decided that it didn't make sense to use numpy for all the tests, so instead I made new testing environments specifically for numpy.
1 parent 5076955 commit 5d24968

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,16 @@ env:
1616
- TOXENV=py33
1717
- TOXENV=py34
1818
- TOXENV=py35
19+
- TOXENV=py36
1920
- TOXENV=pypy
2021
- TOXENV=py27-pexpect
2122
- TOXENV=py27-xdist
2223
- TOXENV=py27-trial
24+
- TOXENV=py27-numpy
2325
- TOXENV=py35-pexpect
2426
- TOXENV=py35-xdist
2527
- TOXENV=py35-trial
28+
- TOXENV=py35-numpy
2629
- TOXENV=py27-nobyte
2730
- TOXENV=doctesting
2831
- TOXENV=freeze

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ environment:
2020
- TOXENV: "py27-pexpect"
2121
- TOXENV: "py27-xdist"
2222
- TOXENV: "py27-trial"
23+
- TOXENV: "py27-numpy"
2324
- TOXENV: "py35-pexpect"
2425
- TOXENV: "py35-xdist"
2526
- TOXENV: "py35-trial"
27+
- TOXENV: "py35-numpy"
2628
- TOXENV: "py27-nobyte"
2729
- TOXENV: "doctesting"
2830
- TOXENV: "freeze"

tox.ini

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ envlist=
1212
py36
1313
py37
1414
pypy
15-
{py27,py35}-{pexpect,xdist,trial}
15+
{py27,py35}-{pexpect,xdist,trial,numpy}
1616
py27-nobyte
1717
doctesting
1818
freeze
@@ -26,7 +26,6 @@ deps=
2626
nose
2727
mock
2828
requests
29-
numpy
3029

3130
[testenv:py26]
3231
commands= pytest --lsof -rfsxX {posargs:testing}
@@ -111,6 +110,16 @@ deps={[testenv:py27-trial]deps}
111110
commands=
112111
pytest -ra {posargs:testing/test_unittest.py}
113112

113+
[testenv:py27-numpy]
114+
deps=numpy
115+
commands=
116+
pytest -rfsxX {posargs:testing/python/approx.py}
117+
118+
[testenv:py35-numpy]
119+
deps=numpy
120+
commands=
121+
pytest -rfsxX {posargs:testing/python/approx.py}
122+
114123
[testenv:docs]
115124
skipsdist=True
116125
usedevelop=True

0 commit comments

Comments
 (0)