From 7387bc5919768906502c09cf4ca40ad71b8af7f4 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Sat, 6 May 2017 16:42:03 -0700 Subject: [PATCH] Fix pandas datetime test --- lib/matplotlib/tests/test_dates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/tests/test_dates.py b/lib/matplotlib/tests/test_dates.py index 42962c456098..d87ba38edde2 100644 --- a/lib/matplotlib/tests/test_dates.py +++ b/lib/matplotlib/tests/test_dates.py @@ -437,7 +437,7 @@ def test_date2num_dst_pandas(): pd = pytest.importorskip('pandas') def tz_convert(*args): - return pd.DatetimeIndex.tz_convert(*args).astype(datetime.datetime) + return pd.DatetimeIndex.tz_convert(*args).astype(object) _test_date2num_dst(pd.date_range, tz_convert)