pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_formatting_unicode__str__
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x00000000708d77c0>
def test_formatting_unicode__str__(self):
class A:
def __init__(self, num):
self.num = num
def __str__(self):
return unichr(self.num)
> s = '%s' % A(111) # this is ASCII
[/buildbot/slave/own-linux-aarch64/build/pypy/objspace/std/test/test_unicodeobject.py:524]:8:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x0000000061dbc020>
def __str__(self):
> return unichr(self.num)
E (application-level) NameError: name 'unichr' is not defined
[/buildbot/slave/own-linux-aarch64/build/pypy/objspace/std/test/test_unicodeobject.py:524]:6: NameError
builder: own-linux-aarch64 build #2821+
test: pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_formatting_unicode__str__