fix test after changing type inference for unicode indexing
authorStefan Behnel <scoder@users.berlios.de>
Sun, 6 Feb 2011 09:14:01 +0000 (10:14 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 6 Feb 2011 09:14:01 +0000 (10:14 +0100)
tests/run/type_inference.pyx

index 2c5f1809621ee03cb16de1f74dd7893bcef70703..e51e43e464b6d55f3c5360ae11914c19c0ce4c96 100644 (file)
@@ -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: