Skip to content

Commit d6ada55

Browse files
committed
Add separate test environment for pytz
The separate tests with and without pytz are done to try to minimize the possibility of implicit dependencies on pytz.
1 parent 6f87049 commit d6ada55

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ install:
178178
$PYTEST_PEP8 \
179179
pytest-rerunfailures \
180180
pytest-timeout \
181-
pytest-xdist
181+
pytest-xdist \
182+
tox
182183
- |
183184
# Install matplotlib
184185
python -mpip install -ve .
@@ -195,6 +196,7 @@ before_script: |
195196
script: |
196197
echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
197198
python -mpytest
199+
tox -e pytz
198200
199201
before_cache: |
200202
rm -rf $HOME/.cache/matplotlib/tex.cache

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,11 @@ commands =
1414
deps =
1515
numpy
1616
pytest
17+
18+
[testenv:pytz]
19+
changedir = /tmp
20+
commands =
21+
pytest -m pytz {toxinidir}
22+
deps =
23+
pytest
24+
pytz

0 commit comments

Comments
 (0)