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 0x000000013d186aa0>

    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 'a\xcc\x88' == u'a\u0308'
E             - a\xcc\x88
E             + ä

interpreter/test/test_fsencode.py:77: AssertionError
---------- Captured stderr call ----------
/Users/matti/build-worker-arm64/own-macos-arm64/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
/Users/matti/build-worker-arm64/own-macos-arm64/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-macos-arm64 build #1207
test: pypy/interpreter/test/test_fsencode/py/TestFSEncode/()/test_fsencode_fsdecode