[pypy-commit] pypy unicode-utf8: fix failing test, like append_slice
mattip
pypy.commits at gmail.com
Sun Jan 6 02:57:15 EST 2019
Author: Matti Picus <matti.picus at 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)
More information about the pypy-commit
mailing list