Author: fijal Branch: unicode-utf8 Changeset: r93141:eb564d44a7c8 Date: 2017-11-23 16:15 +0100 http://bitbucket.org/pypy/pypy/changeset/eb564d44a7c8/
Log: fix test on narrow host 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 @@ -57,12 +57,13 @@ assert ~(length) == e.start else: assert valid - assert length == len(u) if flag == rutf8.FLAG_ASCII: s.decode('ascii') # assert did not raise elif flag == rutf8.FLAG_HAS_SURROGATES: assert allow_surrogates assert _has_surrogates(s) + if sys.maxunicode == 0x10FFFF or not _has_surrogates(s): + assert length == len(u) @given(strategies.characters()) def test_next_pos(uni): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit