@@ -473,7 +473,7 @@ def test_to_datetime_tz(self, cache):
473473 pd .to_datetime (arr , cache = cache )
474474
475475 @pytest .mark .parametrize ('cache' , [True , False ])
476- def test_to_datetime_offset (self , cache ):
476+ def test_to_datetime_different_offsets (self , cache ):
477477 # inspired by asv timeseries.ToDatetimeNONISO8601 benchmark
478478 # see GH-26097 for more
479479 ts_string_1 = 'March 1, 2018 12:00:00+0400'
@@ -488,8 +488,10 @@ def test_to_datetime_offset(self, cache):
488488 @pytest .mark .parametrize ('convertor' , (lambda x : x , str ))
489489 @given (date1 = datetimes (timezones = timezones ()),
490490 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
493495 arg = [convertor (date1 ), convertor (date2 )] * 5 + suffix
494496
495497 def _get_answer (cache ):
0 commit comments