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

pypy/interpreter/test/test_unicodehelper.py::test_decode_utf8sp

def test_decode_utf8sp():
        space = FakeSpace(None)
>       assert decode_utf8sp(space, "\xed\xa0\x80") == ("\xed\xa0\x80", 1, 3)

interpreter/test/test_unicodehelper.py:72: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
interpreter/unicodehelper.py:1141: in decode_utf8sp
    allow_surrogates=True)
interpreter/unicodehelper.py:375: in str_decode_utf8
    space, s, w_s, errors, final, errorhandler, allow_surrogates=allow_surrogates)
interpreter/unicodehelper.py:490: in _str_decode_utf8_slowpath
    w_s, pos, pos+1)
interpreter/unicodehelper.py:30: in decode_never_raise
    s= space.bytes_w(w_s)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pypy.interpreter.test.test_unicodehelper.FakeSpace instance at 0x00007fc9e8af76e0>
name = 'bytes_w'

    def __getattr__(self, name):
        if name in ('w_UnicodeEncodeError', 'w_UnicodeDecodeError'):
            raise Hit
>       raise AttributeError(name)
E       AttributeError: bytes_w

interpreter/test/test_unicodehelper.py:26: AttributeError
builder: own-macos-x86-64 build #1268+
test: pypy/interpreter/test/test_unicodehelper.py::test_decode_utf8sp