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

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

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

    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

[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/objspace/std/test/test_unicodeobject.py:524]:8: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

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

    def __str__(self):
>       return unichr(self.num)
E       (application-level) NameError: name 'unichr' is not defined

[/Users/matti/build-worker-x86_64/own-macos-x86-64/build/pypy/objspace/std/test/test_unicodeobject.py:524]:6: NameError
builder: own-macos-x86-64 build #1308+
test: pypy/objspace/std/test/test_unicodeobject.py::AppTestUnicodeString::()::test_formatting_unicode__str__