22from  functools  import  partial 
33from  io  import  StringIO 
44
5- from  dateutil .tz  import  tzlocal 
65import  numpy  as  np 
76import  pytest 
87import  pytz 
@@ -477,15 +476,10 @@ def test_upsample_with_limit():
477476 tm .assert_series_equal (result , expected )
478477
479478
480- @pytest .mark .parametrize ("freq" , ["Y"  ,  "10M" ,  " 5D""10H" , "5Min" , "10S" ]) 
479+ @pytest .mark .parametrize ("freq" , ["5D" , "10H" , "5Min" , "10S" ]) 
481480@pytest .mark .parametrize ("rule" , ["Y" , "3M" , "15D" , "30H" , "15Min" , "30S" ]) 
482481def  test_nearest_upsample_with_limit (tz_aware_fixture , freq , rule ):
483482 # GH 33939 
484-  tz  =  tz_aware_fixture 
485-  if  str (tz ) ==  "tzlocal()"  and  rule  ==  "30S"  and  freq  in  ["Y" , "10M" ]:
486-  # GH#34413 separate these so we can mark as slow, see 
487-  # test_nearest_upsample_with_limit_tzlocal 
488-  return 
489483 rng  =  date_range ("1/1/2000" , periods = 3 , freq = freq , tz = tz_aware_fixture )
490484 ts  =  Series (np .random .randn (len (rng )), rng )
491485
@@ -494,20 +488,6 @@ def test_nearest_upsample_with_limit(tz_aware_fixture, freq, rule):
494488 tm .assert_series_equal (result , expected )
495489
496490
497- @pytest .mark .slow  
498- @pytest .mark .parametrize ("freq" , ["Y" , "10M" ]) 
499- def  test_nearest_upsample_with_limit_tzlocal (freq ):
500-  # GH#33939, GH#34413 split off from test_nearest_upsample_with_limit 
501-  rule  =  "30S" 
502-  tz  =  tzlocal ()
503-  rng  =  date_range ("1/1/2000" , periods = 3 , freq = freq , tz = tz )
504-  ts  =  Series (np .random .randn (len (rng )), rng )
505- 
506-  result  =  ts .resample (rule ).nearest (limit = 2 )
507-  expected  =  ts .reindex (result .index , method = "nearest" , limit = 2 )
508-  tm .assert_series_equal (result , expected )
509- 
510- 
511491def  test_resample_ohlc (series ):
512492 s  =  series 
513493
0 commit comments