@@ -473,7 +473,7 @@ def test_to_datetime_tz(self, cache):
473
473
pd .to_datetime (arr , cache = cache )
474
474
475
475
@pytest .mark .parametrize ('cache' , [True , False ])
476
- def test_to_datetime_offset (self , cache ):
476
+ def test_to_datetime_different_offsets (self , cache ):
477
477
# inspired by asv timeseries.ToDatetimeNONISO8601 benchmark
478
478
# see GH-26097 for more
479
479
ts_string_1 = 'March 1, 2018 12:00:00+0400'
@@ -488,8 +488,10 @@ def test_to_datetime_offset(self, cache):
488
488
@pytest .mark .parametrize ('convertor' , (lambda x : x , str ))
489
489
@given (date1 = datetimes (timezones = timezones ()),
490
490
date2 = datetimes (timezones = timezones ()))
491
- def test_to_datetime_cache_errors (self , date1 , date2 , suffix ,
492
- errors , convertor ):
491
+ def test_to_datetime_cache_invariance (self , date1 , date2 , suffix ,
492
+ errors , convertor ):
493
+ # prepare a list of dates to parse with some duplicates
494
+ # and possible invalid string
493
495
arg = [convertor (date1 ), convertor (date2 )] * 5 + suffix
494
496
495
497
def _get_answer (cache ):
0 commit comments