| 1 |
From: Colin Watson <[email protected]> |
| 2 |
Date: Tue, 4 Feb 2025 09:44:23 +0000 |
| 3 |
Subject: Skip test_reductions_out[product] with numpy >= 2 |
| 4 |
|
| 5 |
These tests have already been removed in the next upstream release, but |
| 6 |
that depends more heavily on pyarrow which isn't yet in Debian. |
| 7 |
|
| 8 |
Forwarded: not-needed |
| 9 |
Bug-Debian: https://bugs.debian.org/1095019 |
| 10 |
Last-Update: 2025-02-04 |
| 11 |
--- |
| 12 |
dask/dataframe/tests/test_arithmetics_reduction.py | 7 +++++++ |
| 13 |
1 file changed, 7 insertions(+) |
| 14 |
|
| 15 |
diff --git a/dask/dataframe/tests/test_arithmetics_reduction.py b/dask/dataframe/tests/test_arithmetics_reduction.py |
| 16 |
index e21d3fb..d76d12d 100644 |
| 17 |
--- a/dask/dataframe/tests/test_arithmetics_reduction.py |
| 18 |
+++ b/dask/dataframe/tests/test_arithmetics_reduction.py |
| 19 |
@@ -860,6 +860,13 @@ def test_reductions_out(axis, redfunc): |
| 20 |
|
| 21 |
out = dd.from_pandas(pd.Series([], dtype="float64"), 3) |
| 22 |
|
| 23 |
+ if NUMPY_GE_200 and redfunc == "product": |
| 24 |
+ with pytest.raises( |
| 25 |
+ AttributeError, match="module 'numpy' has no attribute 'product'" |
| 26 |
+ ): |
| 27 |
+ np_redfunc = getattr(np, redfunc) |
| 28 |
+ pytest.skip(reason="numpy>2 removed product -- users should move to prod") |
| 29 |
+ |
| 30 |
np_redfunc = getattr(np, redfunc) |
| 31 |
pd_redfunc = getattr(frame.__class__, redfunc) |
| 32 |
dsk_redfunc = getattr(dsk_in.__class__, redfunc) |