Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63778:2a5856d48bbf
Date: 2013-04-30 15:03 -0700
http://bitbucket.org/pypy/pypy/changeset/2a5856d48bbf/
Log: skip this test on ascii or similar fsencodings
diff --git a/pypy/module/cpyext/test/test_unicodeobject.py
b/pypy/module/cpyext/test/test_unicodeobject.py
--- a/pypy/module/cpyext/test/test_unicodeobject.py
+++ b/pypy/module/cpyext/test/test_unicodeobject.py
@@ -297,8 +297,11 @@
assert s == "12ሴ"
def test_encode_fsdefault(self, space, api):
- w_u = space.wrap(u'sp\udcc3\udca4m')
+ w_u = space.wrap(u'sp�m')
w_s = api.PyUnicode_EncodeFSDefault(w_u)
+ if w_s is None:
+ api.PyErr_Clear()
+ py.test.skip("Requires a unicode-aware fsencoding")
with rffi.scoped_str2charp(space.str_w(w_s)) as encoded:
w_decoded = api.PyUnicode_DecodeFSDefaultAndSize(encoded,
space.len_w(w_s))
assert space.eq_w(w_decoded, w_u)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit