Debian Codegraph @

debian/patches/pandas-3.0-compat.patch.patch

raw
1 From: Antonio Valentino <[email protected]>
2 Date: Sun, 28 Jun 2026 16:58:32 +0000
3 Subject: pandas-3.0-compat.patch
4
5 Origin: https://github.com/dask/dask/commit/c5e61ab5fbb3e409c36ac6281a0eef7c38a8c97b
6 Forwarded: not-needed
7 ---
8 dask/tests/test_delayed.py | 3 ++-
9 1 file changed, 2 insertions(+), 1 deletion(-)
10
11 diff --git a/dask/tests/test_delayed.py b/dask/tests/test_delayed.py
12 index 4ce1dbc..58486d1 100644
13 --- a/dask/tests/test_delayed.py
14 +++ b/dask/tests/test_delayed.py
15 @@ -280,7 +280,8 @@ def test_np_dtype_of_delayed():
16 # https://github.com/dask/dask/pull/4374#issuecomment-454381465
17 np = pytest.importorskip("numpy")
18 x = delayed(1)
19 - with pytest.raises(TypeError):
20 + with pytest.raises((ValueError, TypeError)):
21 + # ValueError in numpy 2.4+, TypeError earlier.
22 np.dtype(x)
23 assert delayed(np.array([1], dtype="f8")).dtype.compute() == np.dtype("f8")
24