|
2 | 2 | import boost_histogram.numpy as bhnp
|
3 | 3 | import dask.array as da
|
4 | 4 | import numpy as np
|
| 5 | +from packaging.version import parse as parse_version |
5 | 6 | import pytest
|
6 | 7 |
|
7 | 8 | import dask_histogram.boost as dhb
|
@@ -247,6 +248,10 @@ def test_histogramdd_multicolumn_input():
|
247 | 248 | np.testing.assert_array_almost_equal(h1.view(), h2.view())
|
248 | 249 |
|
249 | 250 |
|
| 251 | +@pytest.mark.xfail( |
| 252 | + parse_version(dask.__version__) >= parse_version("2025"), |
| 253 | + reason="to_dataframe is broken with dask 2025.1.0", |
| 254 | +) |
250 | 255 | def test_histogramdd_series():
|
251 | 256 | pytest.importorskip("pandas")
|
252 | 257 |
|
@@ -276,6 +281,10 @@ def test_histogramdd_series():
|
276 | 281 | np.testing.assert_array_almost_equal(h1.view()["variance"], h2.view()["variance"])
|
277 | 282 |
|
278 | 283 |
|
| 284 | +@pytest.mark.xfail( |
| 285 | + parse_version(dask.__version__) >= parse_version("2025"), |
| 286 | + reason="to_dataframe is broken with dask 2025.1.0", |
| 287 | +) |
279 | 288 | def test_histogramdd_arrays_and_series():
|
280 | 289 | pytest.importorskip("pandas")
|
281 | 290 |
|
@@ -305,6 +314,10 @@ def test_histogramdd_arrays_and_series():
|
305 | 314 | np.testing.assert_array_almost_equal(h1.view()["variance"], h2.view()["variance"])
|
306 | 315 |
|
307 | 316 |
|
| 317 | +@pytest.mark.xfail( |
| 318 | + parse_version(dask.__version__) >= parse_version("2025"), |
| 319 | + reason="to_dataframe is broken with dask 2025.1.0", |
| 320 | +) |
308 | 321 | def test_histogramdd_dataframe():
|
309 | 322 | pytest.importorskip("pandas")
|
310 | 323 | x = da.random.standard_normal(size=(1000, 3), chunks=(200, 3))
|
|
0 commit comments