From a7e63a05aaddbd308f8c28c3e219f1ee204cc490 Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Fri, 11 Sep 2026 14:27:20 +0200 Subject: [PATCH 1/2] address numpy deprecation --- tests/test_clearsky.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_clearsky.py b/tests/test_clearsky.py index ed1ce85c64..08f05171db 100644 --- a/tests/test_clearsky.py +++ b/tests/test_clearsky.py @@ -663,7 +663,7 @@ def test_detect_clearsky_arrays(detect_clearsky_data): def test_detect_clearsky_irregular_times(detect_clearsky_data): expected, cs = detect_clearsky_data times = cs.index.values.copy() - times[0] += 10**9 + times[0] += pd.Timedelta(1, unit='s') times = pd.DatetimeIndex(times) with pytest.raises(NotImplementedError): clearsky.detect_clearsky(expected['GHI'].values, cs['ghi'].values, From 5c8648572a53c5b3a6ae4f60d5ee4d2fb2269e6b Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Fri, 11 Sep 2026 14:27:38 +0200 Subject: [PATCH 2/2] add match to pytest.raises --- tests/test_clearsky.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_clearsky.py b/tests/test_clearsky.py index 08f05171db..87843a7e3b 100644 --- a/tests/test_clearsky.py +++ b/tests/test_clearsky.py @@ -665,7 +665,8 @@ def test_detect_clearsky_irregular_times(detect_clearsky_data): times = cs.index.values.copy() times[0] += pd.Timedelta(1, unit='s') times = pd.DatetimeIndex(times) - with pytest.raises(NotImplementedError): + match = "does not yet support unequal time intervals" + with pytest.raises(NotImplementedError, match=match): clearsky.detect_clearsky(expected['GHI'].values, cs['ghi'].values, times, 10)