[pypy-commit] pypy py3k: Fix one test in test_unicode.py

amauryfa noreply at buildbot.pypy.org
Sat Oct 20 23:30:21 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r58286:5c956274053b
Date: 2012-10-20 23:14 +0200
http://bitbucket.org/pypy/pypy/changeset/5c956274053b/

Log:	Fix one test in test_unicode.py

diff --git a/pypy/objspace/std/unicodetype.py b/pypy/objspace/std/unicodetype.py
--- a/pypy/objspace/std/unicodetype.py
+++ b/pypy/objspace/std/unicodetype.py
@@ -210,8 +210,7 @@
                 u = space.unicode_w(w_object)
                 eh = unicodehelper.encode_error_handler(space)
                 return space.wrapbytes(unicode_encode_utf_8(
-                        u, len(u), None, errorhandler=eh,
-                        allow_surrogates=True))
+                        u, len(u), None, errorhandler=eh))
         from pypy.module._codecs.interp_codecs import lookup_codec
         w_encoder = space.getitem(lookup_codec(space, encoding), space.wrap(0))
     if errors is None:


More information about the pypy-commit mailing list