def METHOD_NAME(self):
    try:
        class Foo(object):
            @PropertySubSlots
            def spam(self):
                """Trying to copy this docstring will raise an exception"""
                return 1
    #This raises a TypeError in Jython.
    except (AttributeError, TypeError):
        pass
    else:
        raise Exception("AttributeError not raised")