[pypy-commit] pypy unicode-utf8: Fix test (?)

arigo pypy.commits at gmail.com
Mon Nov 27 17:11:14 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: unicode-utf8
Changeset: r93188:a5ddce968cd5
Date: 2017-11-27 23:10 +0100
http://bitbucket.org/pypy/pypy/changeset/a5ddce968cd5/

Log:	Fix test (?)

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
@@ -199,7 +199,7 @@
     s = rutf8.Utf8StringBuilder()
     s.append_utf8("abc", 3, rutf8.FLAG_ASCII)
     assert s.get_flag() == rutf8.FLAG_ASCII
-    assert s.get_length() == 1
+    assert s.get_length() == 3
     assert s.build().decode("utf8") == u"abc"
 
     s.append_utf8(u"\u1234".encode("utf8"), 1, rutf8.FLAG_REGULAR)


More information about the pypy-commit mailing list