Author: Matti Picus <matti.pi...@gmail.com>
Branch: unicode-utf8
Changeset: r95584:06c2230fec3c
Date: 2019-01-06 09:56 +0200
http://bitbucket.org/pypy/pypy/changeset/06c2230fec3c/

Log:    fix failing test, like append_slice

diff --git a/pypy/module/__pypy__/interp_builders.py 
b/pypy/module/__pypy__/interp_builders.py
--- a/pypy/module/__pypy__/interp_builders.py
+++ b/pypy/module/__pypy__/interp_builders.py
@@ -64,8 +64,9 @@
     def descr__new__(space, w_subtype, size=-1):
         return W_UnicodeBuilder(space, 3 * size)
 
-    @unwrap_spec(s='utf8')
-    def descr_append(self, space, s):
+    def descr_append(self, space, w_s):
+        w_unicode = W_UnicodeObject.convert_arg_to_w_unicode(space, w_s)
+        s = space.utf8_w(w_unicode)
         self.builder.append(s)
 
     @unwrap_spec(start=int, end=int)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to