mirror of
https://github.com/wassname/geopandas.git
synced 2026-09-09 11:22:50 +08:00
CI: 310-dev tests failing (#2643)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user