Skip to content

Commit 37ed643

Browse files
TST: skip dissolve split_out tests for dask 2022.01.1 (#150)
1 parent dcfc810 commit 37ed643

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/test_core.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import numpy as np
55
import geopandas
66
from shapely.geometry import Polygon, Point, LineString, MultiPoint
7+
import dask
78
import dask.dataframe as dd
89
from dask.dataframe.core import Scalar
910
import dask_geopandas
@@ -546,12 +547,30 @@ def test_sum(self):
546547
gpd_sum, dd_sum.drop(columns=["name", "iso_a3"]), check_like=True
547548
)
548549

550+
@pytest.mark.skipif(
551+
Version(dask.__version__) == Version("2022.01.1"),
552+
reason="Regression in dask 2022.01.1 https://github.com/dask/dask/issues/8611",
553+
)
549554
def test_split_out(self):
550555
gpd_default = self.world.dissolve("continent")
551556
dd_split = self.ddf.dissolve("continent", split_out=4)
552557
assert dd_split.npartitions == 4
553558
assert_geodataframe_equal(gpd_default, dd_split.compute(), check_like=True)
554559

560+
@pytest.mark.skipif(
561+
Version(dask.__version__) == Version("2022.01.1"),
562+
reason="Regression in dask 2022.01.1 https://github.com/dask/dask/issues/8611",
563+
)
564+
@pytest.mark.xfail
565+
def test_split_out_name(self):
566+
gpd_default = self.world.rename_geometry("geom").dissolve("continent")
567+
ddf = dask_geopandas.from_geopandas(
568+
self.world.rename_geometry("geom"), npartitions=4
569+
)
570+
dd_split = ddf.dissolve("continent", split_out=4)
571+
assert dd_split.npartitions == 4
572+
assert_geodataframe_equal(gpd_default, dd_split.compute(), check_like=True)
573+
555574
def test_dict(self):
556575
aggfunc = {
557576
"pop_est": "min",

0 commit comments

Comments
 (0)