Skip to content

Commit add5b06

Browse files
committed
fix iotools.tmy tests
1 parent fc13be0 commit add5b06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/iotools/test_tmy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_gh865_read_tmy3_feb_leapyear_hr24():
9393
assert all(data.index[:-1].year == 1990)
9494
assert data.index[-1].year == 1991
9595
# let's do a quick sanity check, are the indices monotonically increasing?
96-
assert all(np.diff(data.index.view(np.int64)) == 3600000000000)
96+
assert all(np.diff(data.index) == pd.Timedelta(hours=1))
9797
# according to the TMY3 manual, each record corresponds to the previous
9898
# hour so check that the 1st hour is 1AM and the last hour is midnite
9999
assert data.index[0].hour == 1

0 commit comments

Comments
 (0)