From: Stefan Behnel Date: Sun, 6 Feb 2011 09:14:01 +0000 (+0100) Subject: fix test after changing type inference for unicode indexing X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f76ca90fb8e54513ede8941be3cae2cf53d9eedb;p=cython.git fix test after changing type inference for unicode indexing --- diff --git a/tests/run/type_inference.pyx b/tests/run/type_inference.pyx index 2c5f1809..e51e43e4 100644 --- a/tests/run/type_inference.pyx +++ b/tests/run/type_inference.pyx @@ -98,7 +98,7 @@ def indexing(): u = u"xyz" assert typeof(u) == "unicode object", typeof(u) u1 = u[1] - assert typeof(u1) == "Py_UNICODE", typeof(u1) + assert typeof(u1) == "Py_UCS4", typeof(u1) s = "xyz" assert typeof(s) == "str object", typeof(s) s1 = s[1] @@ -313,7 +313,7 @@ def loop_over_str(): def loop_over_unicode(): """ >>> print( loop_over_unicode() ) - Py_UNICODE + Py_UCS4 """ cdef unicode ustring = u'abcdefg' for uchar in ustring: