pypy/interpreter/test/test_fsencode.py::TestFSEncode::()::test_fsencode_fsdecode
self = <pypy.interpreter.test.test_fsencode.TestFSEncode instance at 0x00007fc06de8f060>
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-x86_64/own-macos-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
/Users/matti/build-worker-x86_64/own-macos-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-macos-x86-64 build #1208
test: pypy/interpreter/test/test_fsencode/py/TestFSEncode/()/test_fsencode_fsdecode