Skip to content

Commit b0ca78c

Browse files
committed
Merge pull request #8583 from dstansby/travis-pandas
TST: Fix pandas datetime test on pandas 0.20
1 parent f92e79c commit b0ca78c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_dates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def test_date2num_dst_pandas():
452452
raise SkipTest('pandas not installed')
453453

454454
def tz_convert(*args):
455-
return pd.DatetimeIndex.tz_convert(*args).astype(datetime.datetime)
455+
return pd.DatetimeIndex.tz_convert(*args).astype(object)
456456

457457
_test_date2num_dst(pd.date_range, tz_convert)
458458

0 commit comments

Comments
 (0)