From 337b25db2b0e0743dc22f878b85591a7ff5d7db1 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Sun, 22 Jan 2023 11:54:30 +0000 Subject: [PATCH] Ignore extra warning from numpy 1.24 Author: Rebecca N. Palmer Forwarded: not-needed (on main, this is .raises due to other changes) Gbp-Pq: Name numpy1p24.patch --- pandas/tests/test_downstream.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index 067eb85d..a08360ba 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -105,11 +105,11 @@ def test_construct_dask_float_array_int_dtype_match_ndarray(): expected = Series(arr, dtype="i8") tm.assert_series_equal(res, expected) - msg = "In a future version, passing float-dtype values containing NaN" + msg = "In a future version, passing float-dtype values containing NaN|invalid value encountered in cast" arr[2] = np.nan - with tm.assert_produces_warning(FutureWarning, match=msg): + with tm.assert_produces_warning((FutureWarning,RuntimeWarning), match=msg, check_stacklevel=False): res = Series(darr, dtype="i8") - with tm.assert_produces_warning(FutureWarning, match=msg): + with tm.assert_produces_warning((FutureWarning,RuntimeWarning), match=msg, check_stacklevel=False): expected = Series(arr, dtype="i8") tm.assert_series_equal(res, expected) -- 2.30.2