Skip to content

Commit 4d0007b

Browse files
authored
xfail dataframe tests for dask >=2025
1 parent 7d728fd commit 4d0007b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_boost.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import boost_histogram.numpy as bhnp
33
import dask.array as da
44
import numpy as np
5+
from packaging.version import parse as parse_version
56
import pytest
67

78
import dask_histogram.boost as dhb
@@ -247,6 +248,10 @@ def test_histogramdd_multicolumn_input():
247248
np.testing.assert_array_almost_equal(h1.view(), h2.view())
248249

249250

251+
@pytest.mark.xfail(
252+
parse_version(dask.__version__) >= parse_version("2025"),
253+
reason="to_dataframe is broken with dask 2025.1.0",
254+
)
250255
def test_histogramdd_series():
251256
pytest.importorskip("pandas")
252257

@@ -276,6 +281,10 @@ def test_histogramdd_series():
276281
np.testing.assert_array_almost_equal(h1.view()["variance"], h2.view()["variance"])
277282

278283

284+
@pytest.mark.xfail(
285+
parse_version(dask.__version__) >= parse_version("2025"),
286+
reason="to_dataframe is broken with dask 2025.1.0",
287+
)
279288
def test_histogramdd_arrays_and_series():
280289
pytest.importorskip("pandas")
281290

@@ -305,6 +314,10 @@ def test_histogramdd_arrays_and_series():
305314
np.testing.assert_array_almost_equal(h1.view()["variance"], h2.view()["variance"])
306315

307316

317+
@pytest.mark.xfail(
318+
parse_version(dask.__version__) >= parse_version("2025"),
319+
reason="to_dataframe is broken with dask 2025.1.0",
320+
)
308321
def test_histogramdd_dataframe():
309322
pytest.importorskip("pandas")
310323
x = da.random.standard_normal(size=(1000, 3), chunks=(200, 3))

0 commit comments

Comments
 (0)