CI: 310-dev tests failing (#2643)

This commit is contained in:
rraymondgh
2022-11-06 09:07:57 +01:00
committed by GitHub
parent abe2179f82
commit 8b10d33be5
+2 -2
View File
@@ -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