Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63738:f003e101612d
Date: 2013-04-28 13:31 -0700
http://bitbucket.org/pypy/pypy/changeset/f003e101612d/

Log:    use a surrogateescape'd test that will actually work w/ an ascii fs
        encoding

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,7 +297,7 @@
         assert s == "12&#4660;"
 
     def test_encode_fsdefault(self, space, api):
-        w_u = space.wrap(u'sp&#65533;m')
+        w_u = space.wrap(u'sp\udcc3\udca4m')
         w_s = api.PyUnicode_EncodeFSDefault(w_u)
         with rffi.scoped_str2charp(space.str_w(w_s)) as encoded:
             w_decoded = api.PyUnicode_DecodeFSDefaultAndSize(encoded, 
space.len_w(w_s))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to