44
55import  os 
66from  pvlib .iotools  import  psm3 
7- from  conftest  import  needs_pandas_0_22 ,  DATA_DIR 
7+ from  conftest  import  DATA_DIR 
88import  numpy  as  np 
99import  pandas  as  pd 
1010import  pytest 
@@ -70,7 +70,6 @@ def assert_psm3_equal(header, data, expected):
7070    assert  (data .index .tzinfo .zone  ==  'Etc/GMT%+d'  %  - header ['Time Zone' ])
7171
7272
73- @needs_pandas_0_22  
7473@pytest .mark .flaky (reruns = 5 , reruns_delay = 2 ) 
7574def  test_get_psm3_tmy (nrel_api_key ):
7675    """test get_psm3 with a TMY""" 
@@ -80,7 +79,6 @@ def test_get_psm3_tmy(nrel_api_key):
8079    assert_psm3_equal (header , data , expected )
8180
8281
83- @needs_pandas_0_22  
8482@pytest .mark .flaky (reruns = 5 , reruns_delay = 2 ) 
8583def  test_get_psm3_singleyear (nrel_api_key ):
8684    """test get_psm3 with a single year""" 
@@ -90,7 +88,6 @@ def test_get_psm3_singleyear(nrel_api_key):
9088    assert_psm3_equal (header , data , expected )
9189
9290
93- @needs_pandas_0_22  
9491@pytest .mark .flaky (reruns = 5 , reruns_delay = 2 ) 
9592def  test_get_psm3_check_leap_day (nrel_api_key ):
9693    _ , data_2012  =  psm3 .get_psm3 (LATITUDE , LONGITUDE , nrel_api_key ,
@@ -105,7 +102,6 @@ def test_get_psm3_check_leap_day(nrel_api_key):
105102                          (LATITUDE , LONGITUDE , nrel_api_key , 'bad' , 60 ), 
106103                          (LATITUDE , LONGITUDE , nrel_api_key , '2017' , 15 ), 
107104                          ]) 
108- @needs_pandas_0_22  
109105@pytest .mark .flaky (reruns = 5 , reruns_delay = 2 ) 
110106def  test_get_psm3_tmy_errors (
111107    latitude , longitude , api_key , names , interval 
@@ -134,15 +130,13 @@ def io_input(request):
134130    return  obj 
135131
136132
137- @needs_pandas_0_22  
138133def  test_parse_psm3 (io_input ):
139134    """test parse_psm3""" 
140135    header , data  =  psm3 .parse_psm3 (io_input )
141136    expected  =  pd .read_csv (YEAR_TEST_DATA )
142137    assert_psm3_equal (header , data , expected )
143138
144139
145- @needs_pandas_0_22  
146140def  test_read_psm3 ():
147141    """test read_psm3""" 
148142    header , data  =  psm3 .read_psm3 (MANUAL_TEST_DATA )
0 commit comments