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

pypy.objspace.std.test.apptest_typeobjject:test_name

def test_name():
        class Abc(object):
            pass
        assert Abc.__name__ == 'Abc'
        Abc.__name__ = 'Def'
        assert Abc.__name__ == 'Def'
>       raises(TypeError, "Abc.__name__ = 42")
E       TypeError: 'Abc.__name__ = 42' object (type: <class 'str'>) must be callable

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