@pytest.mark.parametrize('other', [None, np.nan])
def test_dti_cmp_null_scalar_inequality(self, tz, other):
    dti = pd.date_range('2016-01-01', periods=2, tz=tz)
    with pytest.raises(TypeError):
        (dti < other)
    with pytest.raises(TypeError):
        (dti <= other)
    with pytest.raises(TypeError):
        (dti > other)
    with pytest.raises(TypeError):
        (dti >= other)
@pytest.mark.parametrize('other', [None, np.nan])
def test_dti_cmp_null_scalar_inequality(self, tz, other):
    dti = pd.date_range('2016-01-01', periods=2, tz=tz)
    with pytest.raises(TypeError):
        (dti < other)
    with pytest.raises(TypeError):
        (dti <= other)
    with pytest.raises(TypeError):
        (dti > other)
    with pytest.raises(TypeError):
        (dti >= other)