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

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

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

    def test_class_with_both_str_and_unicode(self):
            class A(object):
                def __str__(self):
                    return 'foo'
    
                def __unicode__(self):
                    return u'bar'
    
>           assert unicode(A()) == u'bar'
E           (application-level) NameError: name 'unicode' is not defined

[/Users/matti/build-worker-arm64/own-macos-arm64/build/pypy/objspace/std/test/test_unicodeobject.py:609]:9: NameError
builder: own-macos-arm64 build #1310+
test: pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_class_with_both_str_and_unicode