From 8b10d33be5bbf29b3c7f078d3b1bc7dbb647a153 Mon Sep 17 00:00:00 2001 From: rraymondgh <42769112+rraymondgh@users.noreply.github.com> Date: Sun, 6 Nov 2022 08:07:57 +0000 Subject: [PATCH] CI: 310-dev tests failing (#2643) --- geopandas/tests/test_sindex.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geopandas/tests/test_sindex.py b/geopandas/tests/test_sindex.py index 93986fa..dbf586a 100644 --- a/geopandas/tests/test_sindex.py +++ b/geopandas/tests/test_sindex.py @@ -11,6 +11,7 @@ from shapely.geometry import ( from numpy.testing import assert_array_equal import geopandas +import pandas as pd from geopandas import _compat as compat from geopandas import GeoDataFrame, GeoSeries, read_file, datasets @@ -75,14 +76,13 @@ class TestSeriesSindex: s = GeoSeries([t1, t2, sq]) assert s.sindex.size == 3 - @pytest.mark.filterwarnings("ignore:The series.append method is deprecated") def test_polygons_append(self): t1 = Polygon([(0, 0), (1, 0), (1, 1)]) t2 = Polygon([(0, 0), (1, 1), (0, 1)]) sq = Polygon([(0, 0), (1, 0), (1, 1), (0, 1)]) s = GeoSeries([t1, t2, sq]) t = GeoSeries([t1, t2, sq], [3, 4, 5]) - s = s.append(t) + s = pd.concat([s, t]) assert len(s) == 6 assert s.sindex.size == 6