File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 1
1
from pandas .util .testing import network
2
2
import numpy as np
3
+ import pandas as pd
3
4
from pvlib .iotools import tmy
4
5
from conftest import DATA_DIR
5
6
@@ -62,7 +63,8 @@ def test_gh865_read_tmy3_feb_leapyear_hr24():
62
63
assert meta == greensboro
63
64
# February for Greensboro is 1996, a leap year, so check to make sure there
64
65
# aren't any rows in the output that contain Feb 29th
65
- assert data ['1996-02-29 00:00' ].size == 0
66
+ assert data .index [1414 ] == pd .Timestamp ('1996-02-28 23:00:00-0500' )
67
+ assert data .index [1415 ] == pd .Timestamp ('1996-03-01 00:00:00-0500' )
66
68
# now check if it parses correctly when we try to coerce the year
67
69
data , _ = read_tmy3 (TMY3_FEB_LEAPYEAR , coerce_year = 1990 )
68
70
# if get's here w/o an error, then gh865 is fixed, but let's check anyway
You can’t perform that action at this time.
0 commit comments