def carloverre():
    if verbose:
        print "Testing prohibition of Carlo Verre's hack..."
    try:
        object.__setattr__(str, "foo", 42)
    except TypeError:
        pass
    else:
        raise TestFailed, "Carlo Verre __setattr__ suceeded!"
    try:
        object.__delattr__(str, "lower")
    except __HOLE__:
        pass
    else:
        raise TestFailed, "Carlo Verre __delattr__ succeeded!"
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_descr.py/carloverre