[pypy-commit] pypy py3k: use a surrogateescape'd test that will actually work w/ an ascii fs encoding

pjenvey noreply at buildbot.pypy.org
Sun Apr 28 22:32:20 CEST 2013


Author: Philip Jenvey <pjenvey at underboss.org>
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ሴ"
 
     def test_encode_fsdefault(self, space, api):
-        w_u = space.wrap(u'sp�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))


More information about the pypy-commit mailing list