pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_formatting_unicode__str__
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x1c33d9f0>
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-x86-32/build/pypy/objspace/std/test/test_unicodeobject.py:524]:8:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <pypy.interpreter.typedef.W_ObjectObjectUserDictWeakrefable object at 0x2a607a50>
def __str__(self):
> return unichr(self.num)
E (application-level) NameError: name 'unichr' is not defined
[/buildbot/slave/own-linux-x86-32/build/pypy/objspace/std/test/test_unicodeobject.py:524]:6: NameError
builder: own-linux-x86-32 build #9465+
test: pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_formatting_unicode__str__