disable raise ... from ... unittest in py3 (but other syntax checks still work)
[cython.git] / tests / errors / e_badfuncargtype.pyx
1 cdef struct Spam
2
3 cdef extern int spam(void)           # function argument cannot be void
4 cdef extern int grail(int i, void v) # function argument cannot be void
5 cdef int tomato(Spam s):             # incomplete type
6         pass
7
8 _ERRORS = u"""
9 3:21: Use spam() rather than spam(void) to declare a function with no arguments.
10 4:29: Use spam() rather than spam(void) to declare a function with no arguments.
11 5:16: Argument type 'Spam' is incomplete
12 """