Author: Armin Rigo <[email protected]>
Branch: unicode-utf8
Changeset: r93185:3b96420db19a
Date: 2017-11-23 17:50 +0100
http://bitbucket.org/pypy/pypy/changeset/3b96420db19a/
Log: On wide hosts, though, we should continue to run this test about
lone sorrogates
diff --git a/rpython/rlib/test/test_rutf8.py b/rpython/rlib/test/test_rutf8.py
--- a/rpython/rlib/test/test_rutf8.py
+++ b/rpython/rlib/test/test_rutf8.py
@@ -155,7 +155,7 @@
exp_flag = rutf8.FLAG_HAS_SURROGATES
break
lgt, flag = rutf8.get_utf8_length_flag(''.join([c.encode('utf8') for c in
u]))
- if exp_flag != rutf8.FLAG_HAS_SURROGATES:
+ if exp_flag != rutf8.FLAG_HAS_SURROGATES or sys.maxunicode > 0xffff:
assert lgt == exp_lgt
assert flag == exp_flag
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit