diff --git a/.travis.yml b/.travis.yml index fd62b85..4ec2332 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ env: before_install: - sudo add-apt-repository -y ppa:ubuntugis/ppa - sudo apt-get update - - sudo apt-get install gdal-bin libgdal-dev libspatialindex-dev libspatialindex1 + - sudo apt-get install libgdal1h gdal-bin libgdal-dev libspatialindex-dev libspatialindex1 # - sudo -u postgres psql -c "drop database if exists test_geopandas" # - sudo -u postgres psql -c "create database test_geopandas" # - sudo -u postgres psql -c "create extension postgis" -d test_geopandas diff --git a/requirements.test.txt b/requirements.test.txt index fcf829b..69b4255 100644 --- a/requirements.test.txt +++ b/requirements.test.txt @@ -1,6 +1,6 @@ psycopg2>=2.5.1 SQLAlchemy>=0.8.3 -geopy>=0.99 +geopy==0.99 matplotlib>=1.2.1 descartes>=1.0 pytest-cov diff --git a/tests/test_types.py b/tests/test_types.py index fdd14f5..f4b0dad 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -39,7 +39,7 @@ class TestSeries(unittest.TestCase): assert type(self.pts.iloc[5:]) is GeoSeries def test_fancy(self): - idx = (self.pts.index % 2).astype(bool) + idx = (self.pts.index.to_series() % 2).astype(bool) assert type(self.pts[idx]) is GeoSeries def test_take(self): @@ -85,5 +85,5 @@ class TestDataFrame(unittest.TestCase): assert type(self.df[::2]) is GeoDataFrame def test_fancy(self): - idx = (self.df.index % 2).astype(bool) + idx = (self.df.index.to_series() % 2).astype(bool) assert type(self.df[idx]) is GeoDataFrame