def test_add_datetimelike_and_dti_tz(self, addend):
    dti_tz = DatetimeIndex(['2011-01-01', '2011-01-02']).tz_localize('US/Eastern')
    msg = 'cannot add DatetimeIndex and {0}'.format(type(addend).__name__)
    with tm.assert_raises_regex(TypeError, msg):
        (dti_tz + addend)
    with tm.assert_raises_regex(TypeError, msg):
        (addend + dti_tz)
def test_add_datetimelike_and_dti_tz(self, addend):
    dti_tz = DatetimeIndex(['2011-01-01', '2011-01-02']).tz_localize('US/Eastern')
    msg = 'cannot add DatetimeIndex and {0}'.format(type(addend).__name__)
    with tm.assert_raises_regex(TypeError, msg):
        (dti_tz + addend)
    with tm.assert_raises_regex(TypeError, msg):
        (addend + dti_tz)