1 parent 7dde893 commit 53f9341Copy full SHA for 53f9341
1 file changed
tests/test_clearsky.py
@@ -663,9 +663,10 @@ def test_detect_clearsky_arrays(detect_clearsky_data):
663
def test_detect_clearsky_irregular_times(detect_clearsky_data):
664
expected, cs = detect_clearsky_data
665
times = cs.index.values.copy()
666
- times[0] += 10**9
+ times[0] += pd.Timedelta(1, unit='s')
667
times = pd.DatetimeIndex(times)
668
- with pytest.raises(NotImplementedError):
+ match = "does not yet support unequal time intervals"
669
+ with pytest.raises(NotImplementedError, match=match):
670
clearsky.detect_clearsky(expected['GHI'].values, cs['ghi'].values,
671
times, 10)
672
0 commit comments