Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch:
Changeset: r97564:648820f106b9
Date: 2019-09-20 11:44 +0200
http://bitbucket.org/pypy/pypy/changeset/648820f106b9/
Log: should fix the encoding errors
diff --git a/pypy/module/pypyjit/test_pypy_c/test_string.py
b/pypy/module/pypyjit/test_pypy_c/test_string.py
--- a/pypy/module/pypyjit/test_pypy_c/test_string.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_string.py
@@ -224,7 +224,8 @@
def test_unicode_indexing_makes_no_bridges(self):
log = self.run("""
- u =
u"aaaaaä👩‍👩‍👧‍👦" * 1000
+ b =
b"b'aaaaa\xc3\xa4\xf0\x9f\x91\xa9\xe2\x80\x8d\xf0\x9f\x91\xa9\xe2\x80\x8d\xf0\x9f\x91\xa7\xe2\x80\x8d\xf0\x9f\x91\xa6'"
+ u = b.decode("utf-8") * 1000
def main():
for j in range(10):
for i in range(len(u)):
@@ -271,7 +272,8 @@
def test_unicode_slicing_small_constant_indices(self):
log = self.run("""
def main(n):
- u =
u"abä👩‍👩‍👧‍👦éé–—¿"
* 1000
+ b =
b'ab\xc3\xa4\xf0\x9f\x91\xa9\xe2\x80\x8d\xf0\x9f\x91\xa9\xe2\x80\x8d\xf0\x9f\x91\xa7\xe2\x80\x8d\xf0\x9f\x91\xa6'
+ u = b.decode("utf-8") * 1000
global s
count = 0
while u:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit