Author: Amaury Forgeot d'Arc <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to