'pytest.approx should raise TypeError for operators other than == and != (#2003).'

@pytest.mark.parametrize('op', [pytest.param(operator.le, id='<='), pytest.param(operator.lt, id='<'), pytest.param(operator.ge, id='>='), pytest.param(operator.gt, id='>')])
def test_comparison_operator_type_error(self, op):

    with pytest.raises(TypeError):
        op(1, approx(1, rel=1e-06, abs=1e-12))
