def ints():
    if verbose: print "Testing int operations..."
    numops(100, 3)
    # The following crashes in Python 2.2
    vereq((1).__nonzero__(), 1)
    vereq((0).__nonzero__(), 0)
    # This returns 'NotImplemented' in Python 2.2
    class C(int):
        def __add__(self, other):
            return NotImplemented
    vereq(C(5L), 5)
    try:
        C() + ""
    except __HOLE__:
        pass
    else:
        raise TestFailed, "NotImplemented should have caused TypeError"
    import sys
    try:
        C(sys.maxint+1)
    except OverflowError:
        pass
    else:
        raise TestFailed, "should have raised OverflowError"
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_descr.py/ints