Home - Summaries: (main) : (py3.11) : (py3.12) : Everything - Nightly builds - Benchmarks - RPython - Builders - About

pypy.objspace.std.test.apptest_typeobjject:test_abstract_methods

def test_abstract_methods():
        class X(object):
            pass
        X.__abstractmethods__ = ("meth",)
        raises(TypeError, X)
        del X.__abstractmethods__
        X()
        raises(AttributeError, getattr, type, "__abstractmethods__")
>       raises(TypeError, "int.__abstractmethods__ = ('abc', )")
E       TypeError: "int.__abstractmethods__ = ('abc', )" object (type: <class 'str'>) must be callable

../build/pypy/objspace/std/test/apptest_typeobjject.py:110: TypeError
builder: pypy-c-jit-linux-x86-64 build #11895+
test: pypy.objspace.std.test.apptest_typeobjject:test_abstract_methods