'If an incompatible object is compared to a Time object, == should
return False and != should return True. All other comparison
operators should raise an OperandTypeError.'

def test_miscompares(self):

    t1 = Time('J2000', scale='utc')
    for (op, op_str) in ((operator.ge, '>='), (operator.gt, '>'), (operator.le, '<='), (operator.lt, '<')):
        with pytest.raises(OperandTypeError) as err:
            op(t1, None)
        assert str(err).endswith("Unsupported    operand    type(s)    for    {0}:    'Time'    and    'NoneType'".format(op_str))
    assert ((t1 == None) is False)
    assert ((t1 != None) is True)
