diff --git a/tests/test_clearsky.py b/tests/test_clearsky.py index ed1ce85c64..87843a7e3b 100644 --- a/tests/test_clearsky.py +++ b/tests/test_clearsky.py @@ -663,9 +663,10 @@ 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): + 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)