diff --git a/pandas/tseries/tests/test_converter.py b/pandas/tseries/tests/test_converter.py index a1b873e1c0bea..d3287a01cd1da 100644 --- a/pandas/tseries/tests/test_converter.py +++ b/pandas/tseries/tests/test_converter.py @@ -74,7 +74,7 @@ def test_dateindex_conversion(self): for freq in ('B', 'L', 'S'): dateindex = tm.makeDateIndex(k = 10, freq = freq) rs = self.dtc.convert(dateindex, None, None) - xp = converter.dates.date2num(dateindex) + xp = converter.dates.date2num(dateindex._mpl_repr()) np_assert_almost_equal(rs, xp, decimals) def test_resolution(self):