Commit 25752e80 authored by Ian Lee's avatar Ian Lee

Only install unittest2 if Python 2.6

parent 125a7497
......@@ -14,6 +14,7 @@ env:
install:
- pip install -r requirements/test.txt
- if $LXML == true; then pip install lxml; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
# command to run tests, e.g. python setup.py test
script:
......
......@@ -15,7 +15,10 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
import unittest2 as unittest
try:
import unittest2 as unittest # Needed in Python 2.6
except:
import unittest
from fastkml import kml
from fastkml import styles
......
-r common.txt
unittest2
pytest
pep8
coveralls
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment