pypy/module/_codecs/test/test_locale.py::TestLocaleCodec::()::test_decode_locale
self = <pypy.module._codecs.test.test_locale.TestLocaleCodec object at 0x0000024f84dd8480>
def test_decode_locale(self):
self.setlocale("en_US.UTF-8")
utf8_decoder = self.getdecoder('utf-8')
for locale_decoder in (str_decode_locale_surrogateescape,
str_decode_locale_strict):
for val in 'foo', ' \xe6\x97\xa5\xe6\x9c\xac', '\xf0\x93\x88\x8c':
w_s = self.space.newbytes(val)
assert (locale_decoder(val) ==
utf8_decoder(self.space, val, w_s, 'strict',
> True, None)[:2])
E assert ('\xef\xbf\xbd', 1) == ('\xf0\x93\x88\x8c', 1)
E At index 0 diff: '\xef\xbf\xbd' != '\xf0\x93\x88\x8c'
E Use -v to get the full diff
module\_codecs\test\test_locale.py:69: AssertionError
builder: own-win-x86-64 build #2234
test: pypy/module/_codecs/test/test_locale/py/TestLocaleCodec/()/test_decode_locale