diff --git a/.travis.yml b/.travis.yml index bc36b2a..4a406a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,11 @@ language: python python: - - 2.6 - 2.7 - - 3.2 - - 3.3 - - 3.4 + - 3.5 + - 3.6 - pypy -install: - - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2; fi script: - - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then unit2 discover -v; else python -m unittest discover -v; fi + - python -m unittest discover -v notifications: email: - dickinsm@gmail.com diff --git a/test_polygon.py b/test_polygon.py index 952f6a9..23cc982 100644 --- a/test_polygon.py +++ b/test_polygon.py @@ -2,11 +2,7 @@ Tests for Polygon.winding_number. """ -import sys -if sys.version_info >= (2, 7): - import unittest -else: - import unittest2 as unittest +import unittest try: import numpy diff --git a/test_polyhedron.py b/test_polyhedron.py index 5d9e9d0..37ea971 100644 --- a/test_polyhedron.py +++ b/test_polyhedron.py @@ -2,11 +2,7 @@ Tests for Polyhedron winding number calculation. """ -import sys -if sys.version_info >= (2, 7): - import unittest -else: - import unittest2 as unittest +import unittest try: import numpy