Skip to content

Commit

Permalink
Add separate test environment for pytz
Browse files Browse the repository at this point in the history
The separate tests with and without pytz are done to try to minimize the
possibility of implicit dependencies on pytz.
  • Loading branch information
pganssle committed Jul 5, 2018
1 parent 4e92bca commit 9fd5036
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Expand Up @@ -144,6 +144,15 @@ install:
echo 'wxPython is available' ||
echo 'wxPython is not available'
python -mpip install $PRE \
$PYTEST \
$PYTEST_COV \
pytest-faulthandler \
$PYTEST_PEP8 \
pytest-rerunfailures \
pytest-timeout \
pytest-xdist \
tox
- |
# Install matplotlib
python -mpip install -ve .
Expand All @@ -160,6 +169,7 @@ before_script: |
script: |
echo "Calling pytest with the following arguments: $PYTEST_ADDOPTS"
python -mpytest
tox -e pytz
before_cache: |
rm -rf $HOME/.cache/matplotlib/tex.cache
Expand Down
1 change: 1 addition & 0 deletions requirements/testing/travis_all.txt
Expand Up @@ -17,3 +17,4 @@ pytest-xdist
python-dateutil
sphinx
tornado
tox
8 changes: 8 additions & 0 deletions tox.ini
Expand Up @@ -18,3 +18,11 @@ commands =
pytest --pyargs matplotlib
deps =
pytest

[testenv:pytz]
changedir = /tmp
commands =
pytest -m pytz {toxinidir}
deps =
pytest
pytz

0 comments on commit 9fd5036

Please sign in to comment.