Commit f76ca90f authored by Stefan Behnel's avatar Stefan Behnel

fix test after changing type inference for unicode indexing

parent 29945fa6
...@@ -98,7 +98,7 @@ def indexing(): ...@@ -98,7 +98,7 @@ def indexing():
u = u"xyz" u = u"xyz"
assert typeof(u) == "unicode object", typeof(u) assert typeof(u) == "unicode object", typeof(u)
u1 = u[1] u1 = u[1]
assert typeof(u1) == "Py_UNICODE", typeof(u1) assert typeof(u1) == "Py_UCS4", typeof(u1)
s = "xyz" s = "xyz"
assert typeof(s) == "str object", typeof(s) assert typeof(s) == "str object", typeof(s)
s1 = s[1] s1 = s[1]
...@@ -313,7 +313,7 @@ def loop_over_str(): ...@@ -313,7 +313,7 @@ def loop_over_str():
def loop_over_unicode(): def loop_over_unicode():
""" """
>>> print( loop_over_unicode() ) >>> print( loop_over_unicode() )
Py_UNICODE Py_UCS4
""" """
cdef unicode ustring = u'abcdefg' cdef unicode ustring = u'abcdefg'
for uchar in ustring: for uchar in ustring:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment