Skip to content

Commit

Permalink
Clarify added tests intention
Browse files Browse the repository at this point in the history
  • Loading branch information
vnlitvinov committed Apr 19, 2019
1 parent 67257cb commit 6b5227e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pandas/tests/indexes/datetimes/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def test_to_datetime_tz(self, cache):
pd.to_datetime(arr, cache=cache)

@pytest.mark.parametrize('cache', [True, False])
def test_to_datetime_offset(self, cache):
def test_to_datetime_different_offsets(self, cache):
# inspired by asv timeseries.ToDatetimeNONISO8601 benchmark
# see GH-26097 for more
ts_string_1 = 'March 1, 2018 12:00:00+0400'
Expand All @@ -488,8 +488,10 @@ def test_to_datetime_offset(self, cache):
@pytest.mark.parametrize('convertor', (lambda x: x, str))
@given(date1=datetimes(timezones=timezones()),
date2=datetimes(timezones=timezones()))
def test_to_datetime_cache_errors(self, date1, date2, suffix,
errors, convertor):
def test_to_datetime_cache_invariance(self, date1, date2, suffix,
errors, convertor):
# prepare a list of dates to parse with some duplicates
# and possible invalid string
arg = [convertor(date1), convertor(date2)] * 5 + suffix

def _get_answer(cache):
Expand Down

0 comments on commit 6b5227e

Please sign in to comment.