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

pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_str_subclass

self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00000000708d77c0>

    def test_str_subclass(self):
            class Foo9(str):
                def __unicode__(self):
                    return u"world"
>           assert unicode(Foo9("hello")) == u"world"
E           (application-level) NameError: name 'unicode' is not defined

[/buildbot/slave/own-linux-aarch64/build/pypy/objspace/std/test/test_unicodeobject.py:603]:5: NameError
builder: own-linux-aarch64 build #2821+
test: pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_str_subclass