Author: Matti Picus <matti.pi...@gmail.com> Branch: unicode-utf8-py3 Changeset: r95618:cc276d4cd166 Date: 2019-01-11 14:05 +0200 http://bitbucket.org/pypy/pypy/changeset/cc276d4cd166/
Log: vastly speed up own tests diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py --- a/pypy/objspace/std/unicodeobject.py +++ b/pypy/objspace/std/unicodeobject.py @@ -42,9 +42,10 @@ self._index_storage = rutf8.null_storage() # XXX checking, remove before any performance measurments # ifdef not_running_in_benchmark - if not we_are_translated(): - lgt = rutf8.codepoints_in_utf8(utf8str) - assert lgt == length + # if not we_are_translated(): + # print 'UnicodeObject.__init__' + # lgt = rutf8.codepoints_in_utf8(utf8str) + # assert lgt == length @staticmethod def from_utf8builder(builder): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit