From 17b352c48ff7c6e8ec2cc722a600d290ff6c99a1 Mon Sep 17 00:00:00 2001 From: cmp0xff Date: Sat, 27 Sep 2025 00:28:12 +0200 Subject: [PATCH] fix(nightly): #1380 --- tests/series/test_agg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/series/test_agg.py b/tests/series/test_agg.py index bd1d2ec21..2ed73502d 100644 --- a/tests/series/test_agg.py +++ b/tests/series/test_agg.py @@ -52,7 +52,9 @@ def test_agg_complex() -> None: np.exceptions.ComplexWarning, r"Casting complex values to real discards the imaginary part", ), - pytest_warns_bounded(RuntimeWarning, r"invalid value encountered in sqrt"), + pytest_warns_bounded( + RuntimeWarning, r"invalid value encountered in sqrt", upper="2.3.99" + ), ): check(assert_type(series.std(), np.float64), np.float64)