Commit d5419f9e authored by Stefan Behnel's avatar Stefan Behnel

fix test case

parent 42da7405
...@@ -15,17 +15,17 @@ cdef void eggs(Spam s): ...@@ -15,17 +15,17 @@ cdef void eggs(Spam s):
j = s.k # error - undef attribute j = s.k # error - undef attribute
j = s.p # type error j = s.p # type error
s.p = j # type error s.p = j # type error
j = j.i # error - no attributes j = j.i # no error - coercion to Python object
j.i = j # error - no attributes j.i = j # no error - coercion to Python object
j = gp.x # error - incomplete type j = gp.x # error - incomplete type
gp.x = j # error - incomplete type gp.x = j # error - incomplete type
_ERRORS = u""" _ERRORS = u"""
5:36: C struct/union member cannot be a Python object 5:36: C struct/union member cannot be a Python object
15:6: Object of type 'Spam' has no attribute 'k' 15:6: Object of type 'Spam' has no attribute 'k'
16:6: Cannot assign type 'float *[42]' to 'int' 16:6: Cannot assign type 'float *[42]' to 'int'
17:21: Cannot assign type 'int' to 'float *[42]' 17:21: Cannot assign type 'int' to 'float *[42]'
18:6: Object of type 'int' has no attribute 'i'
19:2: Object of type 'int' has no attribute 'i'
20:7: Cannot select attribute of incomplete type 'Grail' 20:7: Cannot select attribute of incomplete type 'Grail'
21:3: Cannot select attribute of incomplete type 'Grail' 21:3: Cannot select attribute of incomplete type 'Grail'
""" """
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