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

pypy/interpreter/test/test_fsencode.py::TestFSEncode::()::test_fsencode_fsdecode

self = <pypy.interpreter.test.test_fsencode.TestFSEncode instance at 0x0000020620bb2be0>

    def test_fsencode_fsdecode(self):
        space = self.space
        strs = [u"/home/bar/baz", u"c:\\"]
        if self.special_char:
            strs.append(self.special_char)
        for st in strs:
            # check roundtrip
            w_st = space.newtext(st.encode('utf8'), len(st))
            w_enc = space.fsencode(w_st)
            w_st2 = space.fsdecode(w_enc)
            assert space.eq_w(w_st, w_st2)
>           assert space.fsdecode_w(w_enc) == st
E           assert '\xc3\xa4' == u'\xe4'
E             - \xc3\xa4
E             + รค

interpreter\test\test_fsencode.py:77: AssertionError
---------- Captured stderr call ----------
d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\test\test_fsencode.py:77: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  assert space.fsdecode_w(w_enc) == st
d:\pypy_stuff\buildbot64\slave\own-win-x86-64\build\pypy\interpreter\test\test_fsencode.py:1: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  import sys
builder: own-win-x86-64 build #2232
test: pypy/interpreter/test/test_fsencode/py/TestFSEncode/()/test_fsencode_fsdecode