

def test_timeseries_coercion(self):
    idx = tm.makeDateIndex(10000)
    ser = Series(np.random.randn(len(idx)), idx.astype(object))
    with tm.assert_produces_warning(FutureWarning):
        idx.assertTrue(ser.is_time_series)
    self.assertTrue(ser.index.is_all_dates)
    self.assertIsInstance(ser.index, DatetimeIndex)

dataset/ETHPy150Open pydata/pandas/pandas/tests/series/test_timeseries.py TestSeriesTimeSeries.test_timeseries_coercion/VarMisuse@53/65 `self`->`idx`