Commit c0680488 authored by Robert Bradshaw's avatar Robert Bradshaw

Modify test for T158 as warnings, not errors, are raised.

parent d62c5b0b
extern int generic_error(void);
extern int specified_error(void);
extern int dynamic_error(void);
cdef void raise_py_error(): cdef void raise_py_error():
pass pass
cdef extern from "foo.h": cdef extern from "cpp_exceptions.h":
cdef int generic_error() except + cdef int generic_error() except +
cdef int specified_error() except +MemoryError cdef int specified_error() except +MemoryError
cdef int dynamic_error() except +raise_py_error cdef int dynamic_error() except +raise_py_error
......
...@@ -49,8 +49,8 @@ cdef int *baz ...@@ -49,8 +49,8 @@ cdef int *baz
print var[0][0] print var[0][0]
cdef unsigned long long var[100][100] cdef unsigned long long var[100][100]
# in 0.11.1 these are warnings
_ERRORS = u""" FUTURE_ERRORS = u"""
4:13: cdef variable 's' declared after it is used 4:13: cdef variable 's' declared after it is used
4:16: cdef variable 'vv' declared after it is used 4:16: cdef variable 'vv' declared after it is used
9:14: cdef variable 'i' declared after it is used 9:14: cdef variable 'i' declared after it is used
...@@ -63,3 +63,12 @@ _ERRORS = u""" ...@@ -63,3 +63,12 @@ _ERRORS = u"""
47:10: cdef variable 'baz' declared after it is used 47:10: cdef variable 'baz' declared after it is used
50:24: cdef variable 'var' declared after it is used 50:24: cdef variable 'var' declared after it is used
""" """
syntax error
_ERRORS = u"""
40:17: cdef variable 't' declared after it is used
47:10: cdef variable 'baz' declared after it is used
50:24: cdef variable 'var' declared after it is used
67:7: Syntax error in simple statement list
"""
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