def dti_cmp_non_datetime(self, tz):
    dti = pd.date_range('2016-01-01', periods=2, tz=tz)
    other = datetime(2016, 1, 1).date()
    assert (not (dti == other).any())
    assert (dti != other).all()
    with pytest.raises(TypeError):
        (dti < other)
    with pytest.raises(TypeError):
        (dti <= other)
    with pytest.raises(TypeError):
        (dti > other)
    with pytest.raises(TypeError):
        (dti >= other)
def dti_cmp_non_datetime(self, tz):
    dti = pd.date_range('2016-01-01', periods=2, tz=tz)
    other = datetime(2016, 1, 1).date()
    assert (not (dti == other).any())
    assert (dti != other).all()
    with pytest.raises(TypeError):
        (dti < other)
    with pytest.raises(TypeError):
        (dti <= other)
    with pytest.raises(TypeError):
        (dti > other)
    with pytest.raises(TypeError):
        (dti >= other)