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 Jun 1, 2018
1 parent 6f87049 commit d6ada55
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -178,7 +178,8 @@ install:
$PYTEST_PEP8 \
pytest-rerunfailures \
pytest-timeout \
pytest-xdist
pytest-xdist \
tox
- |
# Install matplotlib
python -mpip install -ve .
Expand All @@ -195,6 +196,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
8 changes: 8 additions & 0 deletions tox.ini
Expand Up @@ -14,3 +14,11 @@ commands =
deps =
numpy
pytest

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

0 comments on commit d6ada55

Please sign in to comment.