Commit c0c11c66 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix error line numbers (due to tag additions).

parent f7d1c64f
......@@ -27,11 +27,11 @@ def bool_result():
_ERRORS = u'''
2:0: break statement not inside loop
5:4: break statement not inside loop
8:4: break statement not inside loop
11:4: break statement not inside loop
16:5: break statement not inside loop
20:4: break statement not inside loop
22:4: break statement not inside loop
3:0: break statement not inside loop
6:4: break statement not inside loop
9:4: break statement not inside loop
12:4: break statement not inside loop
17:5: break statement not inside loop
21:4: break statement not inside loop
23:4: break statement not inside loop
'''
......@@ -4,5 +4,5 @@
ctypedef object[float] mybuffer
_ERRORS = u"""
1:23: Syntax error in ctypedef statement
4:23: Syntax error in ctypedef statement
"""
......@@ -12,7 +12,7 @@ cdef class MyStr(str): # only in Py2, but can't know that during compilation
pass
_ERRORS = """
4:5: inheritance from PyVarObject types like 'tuple' is not currently supported
7:5: inheritance from PyVarObject types like 'bytes' is not currently supported
10:5: inheritance from PyVarObject types like 'str' is not currently supported
5:5: inheritance from PyVarObject types like 'tuple' is not currently supported
8:5: inheritance from PyVarObject types like 'bytes' is not currently supported
11:5: inheritance from PyVarObject types like 'str' is not currently supported
"""
......@@ -18,5 +18,5 @@ def test():
# too bad we don't get more errors here ...
_ERRORS = u"""
8:13: Non-keyword arg following star-arg
10:13: Non-keyword arg following star-arg
"""
......@@ -4,5 +4,5 @@
nonexisting(3, with_kw_arg=4)
_ERRORS = u"""
1:11: undeclared name not builtin: nonexisting
4:11: undeclared name not builtin: nonexisting
"""
......@@ -18,12 +18,12 @@ cdef class Bar:
pass
_ERRORS = u"""
5:24: C attribute of type 'VoidP' cannot be accessed from Python
5:24: Cannot convert 'VoidP' to Python object
6:24: C attribute of type 'VoidP' cannot be accessed from Python
6:24: Cannot convert 'VoidP' to Python object
6:24: Cannot convert Python object to 'VoidP'
14:22: C attribute of type 'Foo' cannot be accessed from Python
14:22: Cannot convert Python object to 'Foo'
8:24: C attribute of type 'VoidP' cannot be accessed from Python
8:24: Cannot convert 'VoidP' to Python object
9:24: C attribute of type 'VoidP' cannot be accessed from Python
9:24: Cannot convert 'VoidP' to Python object
9:24: Cannot convert Python object to 'VoidP'
17:22: C attribute of type 'Foo' cannot be accessed from Python
17:22: Cannot convert Python object to 'Foo'
"""
......@@ -5,7 +5,7 @@ cdef void
cdef nogil class test: pass
_ERRORS = u"""
2: 5: Expected an identifier, found 'pass'
3: 9: Empty declarator
4:11: Expected ':', found 'class'
3: 5: Expected an identifier, found 'pass'
4: 9: Empty declarator
5:11: Expected ':', found 'class'
"""
......@@ -7,5 +7,5 @@ cdef b(a, b, c=1, d=2):
pass
_ERRORS = u"""
2:5:Call with wrong number of arguments (expected at most 4, got 5)
4:5:Call with wrong number of arguments (expected at most 4, got 5)
"""
......@@ -8,6 +8,6 @@ cdef class Test:
pass
_ERRORS = u"""
3:9: Special methods must be declared with 'def', not 'cdef'
6:9: Special methods must be declared with 'def', not 'cdef'
4:9: Special methods must be declared with 'def', not 'cdef'
7:9: Special methods must be declared with 'def', not 'cdef'
"""
......@@ -9,6 +9,6 @@ cdef class D(C):
pass
_ERRORS = u"""
6: 9: Signature not compatible with previous declaration
2: 9: Previous declaration is here
8: 9: Signature not compatible with previous declaration
4: 9: Previous declaration is here
"""
......@@ -26,11 +26,11 @@ def bool_result():
return True
_ERRORS = u'''
2:0: continue statement not inside loop
5:4: continue statement not inside loop
8:4: continue statement not inside loop
11:4: continue statement not inside loop
16:5: continue statement not inside loop
20:4: continue statement not inside loop
22:4: continue statement not inside loop
3:0: continue statement not inside loop
6:4: continue statement not inside loop
9:4: continue statement not inside loop
12:4: continue statement not inside loop
17:5: continue statement not inside loop
21:4: continue statement not inside loop
23:4: continue statement not inside loop
'''
......@@ -4,7 +4,7 @@ cpdef nogil: pass
cpdef nogil class test: pass
_ERRORS = u"""
2: 6: cdef blocks cannot be declared cpdef
3: 6: cdef blocks cannot be declared cpdef
3:12: Expected ':', found 'class'
3: 6: cdef blocks cannot be declared cpdef
4: 6: cdef blocks cannot be declared cpdef
4:12: Expected ':', found 'class'
"""
......@@ -9,5 +9,5 @@ cdef extern from *:
new Foo(1, 2)
_ERRORS = u"""
6:7: no suitable method found
9:7: no suitable method found
"""
......@@ -6,5 +6,5 @@ escaped = b'abc\xc3\xbc\xc3\xb6\xc3\xa4'
invalid = b'abcüöä'
_ERRORS = """
5:10: bytes can only contain ASCII literal characters.
6:10: bytes can only contain ASCII literal characters.
"""
......@@ -54,24 +54,24 @@ cdef unsigned long long var[100][100]
# in 0.11.1 these are warnings
FUTURE_ERRORS = u"""
4:13: cdef variable 's' 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
15:14: cdef variable 'i' declared after it is used
21:14: cdef variable 'i' declared after it is used
24:9: cdef variable 's' declared after it is used
30:17: cdef variable 't' declared after it is used
34:13: cdef variable 'r' declared after it is used
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
6:13: cdef variable 's' declared after it is used
6:16: cdef variable 'vv' declared after it is used
11:14: cdef variable 'i' declared after it is used
17:14: cdef variable 'i' declared after it is used
23:14: cdef variable 'i' declared after it is used
26:9: cdef variable 's' declared after it is used
32:17: cdef variable 't' declared after it is used
36:13: cdef variable 'r' declared after it is used
42:17: cdef variable 't' declared after it is used
49:10: cdef variable 'baz' declared after it is used
52: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
42:17: cdef variable 't' declared after it is used
49:10: cdef variable 'baz' declared after it is used
52:24: cdef variable 'var' declared after it is used
70:7: Syntax error in simple statement list
"""
......@@ -4,5 +4,5 @@ def test() nogil:
pass
_ERRORS = """
2:0: Python function cannot be declared nogil
3:0: Python function cannot be declared nogil
"""
......@@ -5,5 +5,5 @@ cdef packed foo:
pass
_ERRORS = u"""
1:12: Expected 'struct', found 'foo'
4:12: Expected 'struct', found 'foo'
"""
......@@ -6,5 +6,5 @@ def f():
ptr1 = ptr2 + ptr3 # error
_ERRORS = u"""
4:13: Invalid operand types for '+' (int *; int *)
6:13: Invalid operand types for '+' (int *; int *)
"""
......@@ -12,8 +12,8 @@ cdef class Grail:
pass
_ERRORS = u"""
1:10: Non-default argument follows default argument
1:36: Non-default argument following default argument
4:23: Non-default argument following default argument
9:16: This argument cannot have a default value
3:10: Non-default argument follows default argument
3:36: Non-default argument following default argument
6:23: Non-default argument following default argument
11:16: This argument cannot have a default value
"""
......@@ -10,7 +10,7 @@ cdef void foo(obj):
obj = p2 # error
_ERRORS = u"""
5:16: Cannot assign type 'char *' to 'int'
6:17: Cannot convert Python object to 'int *'
8:17: Cannot convert 'int *' to Python object
7:16: Cannot assign type 'char *' to 'int'
8:17: Cannot convert Python object to 'int *'
10:17: Cannot convert 'int *' to Python object
"""
......@@ -3,5 +3,5 @@
cdef void spam():
None = 42
_ERRORS = u"""
2:1: Cannot assign to or delete this
4:1: Cannot assign to or delete this
"""
......@@ -7,5 +7,5 @@ def foo():
pass
_ERRORS = u"""
4:0: The autotestdict compiler directive is not allowed in function scope
6:0: The autotestdict compiler directive is not allowed in function scope
"""
......@@ -4,6 +4,6 @@ cdef char *spam() except -1:
pass
_ERRORS = u"""
1:26: Cannot assign type 'long' to 'char *'
1:26: Exception value incompatible with function return type
3:26: Cannot assign type 'long' to 'char *'
3:26: Exception value incompatible with function return type
"""
......@@ -8,7 +8,7 @@ cdef int tomato(Spam s): # incomplete type
pass
_ERRORS = u"""
3:21: Use spam() rather than spam(void) to declare a function with no arguments.
4:29: Use spam() rather than spam(void) to declare a function with no arguments.
5:16: Argument type 'Spam' is incomplete
5:21: Use spam() rather than spam(void) to declare a function with no arguments.
6:29: Use spam() rather than spam(void) to declare a function with no arguments.
7:16: Argument type 'Spam' is incomplete
"""
......@@ -5,5 +5,5 @@ cdef struct Foo
def f(Foo *p):
pass
_ERRORS = u"""
3:6: Cannot convert Python object argument to type 'Foo *'
5:6: Cannot convert Python object argument to type 'Foo *'
"""
......@@ -26,19 +26,19 @@ cdef NoSuchType* ptr
ptr = None # This should not produce another error
_ERRORS = u"""
3:19: Python object cannot be declared extern
4:16: Array element cannot be a Python object
5:12: Pointer base type cannot be a Python object
7:13: Variable type 'int []' is incomplete
8:11: Variable type 'Grail' is incomplete
9:10: Variable type 'void' is incomplete
11:15: Array element type 'int []' is incomplete
12:14: Array element type 'Grail' is incomplete
13:16: Array element type 'void' is incomplete
16:9: Variable type 'int []' is incomplete
5:19: Python object cannot be declared extern
6:16: Array element cannot be a Python object
7:12: Pointer base type cannot be a Python object
9:13: Variable type 'int []' is incomplete
10:11: Variable type 'Grail' is incomplete
11:10: Variable type 'void' is incomplete
13:15: Array element type 'int []' is incomplete
14:14: Array element type 'Grail' is incomplete
15:16: Array element type 'void' is incomplete
18:9: Variable type 'int []' is incomplete
#19:1: Function argument cannot be void
19:1: Use spam() rather than spam(void) to declare a function with no arguments.
18:7: Argument type 'Grail' is incomplete
19:1: Invalid use of 'void'
23:5: 'NoSuchType' is not a type identifier
21:1: Use spam() rather than spam(void) to declare a function with no arguments.
20:7: Argument type 'Grail' is incomplete
21:1: Invalid use of 'void'
25:5: 'NoSuchType' is not a type identifier
"""
......@@ -5,5 +5,5 @@ def f():
cdef char *ptr
int1 = int2 | ptr # error
_ERRORS = u"""
4:13: Invalid operand types for '|' (int; char *)
6:13: Invalid operand types for '|' (int; char *)
"""
......@@ -30,15 +30,15 @@ if union_not_boolean:
_ERRORS = u"""
5:26: 'struct_type_not_boolean' is not a constant, variable or function identifier
5:26: Type 'struct_type_not_boolean' not acceptable as a boolean
7:26: 'struct_type_not_boolean' is not a constant, variable or function identifier
7:26: Type 'struct_type_not_boolean' not acceptable as a boolean
12:21: 'struct_not_boolean' is not a constant, variable or function identifier
12:21: Type 'struct_not_boolean' not acceptable as a boolean
14:21: 'struct_not_boolean' is not a constant, variable or function identifier
14:21: Type 'struct_not_boolean' not acceptable as a boolean
19:25: 'union_type_not_boolean' is not a constant, variable or function identifier
19:25: Type 'union_type_not_boolean' not acceptable as a boolean
21:25: 'union_type_not_boolean' is not a constant, variable or function identifier
21:25: Type 'union_type_not_boolean' not acceptable as a boolean
26:20: 'union_not_boolean' is not a constant, variable or function identifier
26:20: Type 'union_not_boolean' not acceptable as a boolean
28:20: 'union_not_boolean' is not a constant, variable or function identifier
28:20: Type 'union_not_boolean' not acceptable as a boolean
"""
......@@ -15,9 +15,9 @@ def f():
cdef object[x, 1] buf0
_ERRORS = u"""
1:17: Buffer types only allowed as function local variables
3:21: Buffer types only allowed as function local variables
6:31: "fakeoption" is not a buffer option
3:17: Buffer types only allowed as function local variables
5:21: Buffer types only allowed as function local variables
8:31: "fakeoption" is not a buffer option
"""
#TODO:
#7:22: "ndim" must be non-negative
......
......@@ -29,9 +29,9 @@ def withnogil_acquire(x):
buf = x
_ERRORS = u"""
3:9: 'nothing' is not a type identifier
10:11: Cannot check buffer index bounds without gil; use boundscheck(False) directive
22:11: Cannot access buffer with object dtype without gil
22:11: Assignment of Python object not allowed without gil
27:12: Assignment of Python object not allowed without gil
3: 9: 'nothing' is not a type identifier
12:11: Cannot check buffer index bounds without gil; use boundscheck(False) directive
24:11: Cannot access buffer with object dtype without gil
24:11: Assignment of Python object not allowed without gil
29:12: Assignment of Python object not allowed without gil
"""
......@@ -16,7 +16,7 @@ cdef int x():
x()()
_ERRORS = u"""
2:1: Calling non-function type 'int'
5:1: Calling non-function type 'float'
14:3: Calling non-function type 'int'
4:1: Calling non-function type 'int'
7:1: Calling non-function type 'float'
16:3: Calling non-function type 'int'
"""
......@@ -39,8 +39,8 @@ p4 = h4
#p2 = h4 # fail
_ERRORS = u"""
16:22: cannot have both '__stdcall' and '__cdecl' calling conventions
19:23: cannot have both '__fastcall' and '__cdecl' calling conventions
18:22: cannot have both '__stdcall' and '__cdecl' calling conventions
21:23: cannot have both '__fastcall' and '__cdecl' calling conventions
"""
#31:14: Cannot assign type 'void (__cdecl )(void)' to 'void (*)(void)'
#32:14: Cannot assign type 'void (__stdcall )(void)' to 'void (*)(void)'
......
......@@ -17,6 +17,6 @@ a.some_method(1, 2)
a.some_method(1, y=2)
_ERRORS = u"""
9:13: Keyword and starred arguments not allowed in cdef functions.
14:13: Keyword and starred arguments not allowed in cdef functions.
12:13: Keyword and starred arguments not allowed in cdef functions.
17:13: Keyword and starred arguments not allowed in cdef functions.
"""
......@@ -5,5 +5,5 @@ cdef int
cdef extern from *:
void f(int)
_ERRORS = u"""
1:8: Empty declarator
3:8: Empty declarator
"""
......@@ -8,6 +8,6 @@ cdef extern from *:
int value = 3
_ERRORS = u"""
2:13: Cannot assign default value to fields in cdef classes, structs or unions
6:12: Cannot assign default value to fields in cdef classes, structs or unions
4:13: Cannot assign default value to fields in cdef classes, structs or unions
8:12: Cannot assign default value to fields in cdef classes, structs or unions
"""
......@@ -9,7 +9,7 @@ ctypedef union eggs:
cdef enum ham:
pass
_ERRORS = u"""
1:5: Empty struct or union definition not allowed outside a 'cdef extern from' block
4:0: Empty struct or union definition not allowed outside a 'cdef extern from' block
7:5: Empty enum definition not allowed outside a 'cdef extern from' block
3:5: Empty struct or union definition not allowed outside a 'cdef extern from' block
6:0: Empty struct or union definition not allowed outside a 'cdef extern from' block
9:5: Empty enum definition not allowed outside a 'cdef extern from' block
"""
......@@ -8,5 +8,5 @@ cdef void f():
a = 42 # assignment to non-lvalue
_ERRORS = u"""
6:3: Assignment to non-lvalue 'a'
8:3: Assignment to non-lvalue 'a'
"""
......@@ -8,6 +8,6 @@ cdef class D(C):
cdef void f(self, int x):
pass
_ERRORS = u"""
6:6: Signature not compatible with previous declaration
2:6: Previous declaration is here
8:6: Signature not compatible with previous declaration
4:6: Previous declaration is here
"""
......@@ -14,7 +14,7 @@ cdef void foo():
bool = 1 in 2 in 3
_ERRORS = u"""
8:13: Invalid types for '==' (int *, Python object)
9:13: Invalid types for '==' (int, char *)
10:13: Invalid types for '==' (char *, int *)
10:13: Invalid types for '==' (int *, Python object)
11:13: Invalid types for '==' (int, char *)
12:13: Invalid types for '==' (char *, int *)
"""
......@@ -24,10 +24,10 @@ cdef void eggs(Spam s):
_ERRORS = u"""
5:36: C struct/union member cannot be a Python object
15:6: Object of type 'Spam' has no attribute 'k'
16:6: Cannot assign type 'float *[42]' to 'int'
17:21: Cannot assign type 'int' to 'float *[42]'
20:7: Cannot select attribute of incomplete type 'Grail'
21:3: Cannot select attribute of incomplete type 'Grail'
7:36: C struct/union member cannot be a Python object
17:6: Object of type 'Spam' has no attribute 'k'
18:6: Cannot assign type 'float *[42]' to 'int'
19:21: Cannot assign type 'int' to 'float *[42]'
22:7: Cannot select attribute of incomplete type 'Grail'
23:3: Cannot select attribute of incomplete type 'Grail'
"""
......@@ -10,5 +10,5 @@ ctypedef struct Spam:
ctypedef struct Spam
_ERRORS = u"""
1:0: Forward-referenced type must use 'cdef', not 'ctypedef'
3:0: Forward-referenced type must use 'cdef', not 'ctypedef'
"""
......@@ -14,6 +14,6 @@ cdef Foo f
cdef Blarg b
_ERRORS = u"""
3:0: 'Foo' previously declared using 'cdef'
9:5: 'Blarg' previously declared using 'ctypedef'
5:0: 'Foo' previously declared using 'cdef'
11:5: 'Blarg' previously declared using 'ctypedef'
"""
......@@ -12,8 +12,8 @@ cdef void f():
_ERRORS = u"""
1:19: Array element cannot be a function
3:18: Function cannot return a function
8:10: Function cannot return a function
8:5: Cannot cast to a function type
3:19: Array element cannot be a function
5:18: Function cannot return a function
10:10: Function cannot return a function
10:5: Cannot cast to a function type
"""
......@@ -13,8 +13,8 @@ def f(a):
del x[i] # error: deletion of non-Python object
del s.m # error: deletion of non-Python object
_ERRORS = u"""
8:6: Cannot assign to or delete this
9:45: Deletion of non-Python, non-C++ object
11:6: Deletion of non-Python, non-C++ object
12:6: Deletion of non-Python, non-C++ object
10:6: Cannot assign to or delete this
11:45: Deletion of non-Python, non-C++ object
13:6: Deletion of non-Python, non-C++ object
14:6: Deletion of non-Python, non-C++ object
"""
......@@ -10,6 +10,6 @@ print 3
# cython: boundscheck = true
_ERRORS = u"""
3:0: boundscheck directive must be set to True or False, got 'true'
4:0: boundscheck directive must be set to True or False, got '9'
4:0: boundscheck directive must be set to True or False, got 'true'
5:0: boundscheck directive must be set to True or False, got '9'
"""
......@@ -12,6 +12,6 @@ except AttributeError:
pass
_ERRORS = u"""
8:0: default 'except:' must be last
10:0: default 'except:' must be last
9:0: default 'except:' must be last
11:0: default 'except:' must be last
"""
......@@ -9,6 +9,6 @@ cdef spamfunc spam
grail = spam # type mismatch
spam = grail # type mismatch
_ERRORS = u"""
7:28: Cannot assign type 'spamfunc' to 'grailfunc'
8:28: Cannot assign type 'grailfunc' to 'spamfunc'
9:28: Cannot assign type 'spamfunc' to 'grailfunc'
10:28: Cannot assign type 'grailfunc' to 'spamfunc'
"""
......@@ -15,12 +15,12 @@ cdef void f():
x = c.__weakref__
c.__weakref__ = x
_ERRORS = u"""
5:20: Illegal use of special attribute __weakref__
5:20: Illegal use of special attribute __weakref__
5:20: Illegal use of special attribute __weakref__
5:20: Special attribute __weakref__ cannot be exposed to Python
8:22: Illegal use of special attribute __weakref__
8:22: Special attribute __weakref__ cannot be exposed to Python
13:6: Illegal use of special attribute __weakref__
14:2: Illegal use of special attribute __weakref__
7:20: Illegal use of special attribute __weakref__
7:20: Illegal use of special attribute __weakref__
7:20: Illegal use of special attribute __weakref__
7:20: Special attribute __weakref__ cannot be exposed to Python
10:22: Illegal use of special attribute __weakref__
10:22: Special attribute __weakref__ cannot be exposed to Python
15:6: Illegal use of special attribute __weakref__
16:2: Illegal use of special attribute __weakref__
"""
# mode: error
def foo():
yield
return 0
......@@ -12,8 +14,8 @@ class Foo:
yield
_ERRORS = u"""
3:4: 'return' with argument inside generator
7:4: 'yield' outside function
9:0: 'yield' not supported here
12:4: 'yield' not supported here
5:4: 'return' with argument inside generator
9:4: 'yield' outside function
11:0: 'yield' not supported here
14:4: 'yield' not supported here
"""
......@@ -9,8 +9,8 @@ def f(obj1, obj2):
int1 = int2[int3] # error
obj1 = obj2[ptr1] # error
_ERRORS = u"""
5:14: Invalid index type 'float'
6:14: Invalid index type 'float *'
7:12: Attempting to index non-array type 'int'
8:17: Cannot convert 'float *' to Python object
7:14: Invalid index type 'float'
8:14: Invalid index type 'float *'
9:12: Attempting to index non-array type 'int'
10:17: Cannot convert 'float *' to Python object
"""
......@@ -10,7 +10,7 @@ def int_literals():
_ERRORS = """
6:8: illegal integer literal syntax in Python source file
7:8: illegal integer literal syntax in Python source file
8:8: illegal integer literal syntax in Python source file
9:8: illegal integer literal syntax in Python source file
"""
......@@ -10,9 +10,9 @@ def int_literals():
_ERRORS = """
4:8: illegal integer literal syntax in Python source file
5:8: illegal integer literal syntax in Python source file
6:8: illegal integer literal syntax in Python source file
7:8: illegal integer literal syntax in Python source file
8:8: illegal integer literal syntax in Python source file
9:8: illegal integer literal syntax in Python source file
"""
......@@ -5,5 +5,5 @@ def f(obj1a, obj1b):
cdef int *ptr2
int1, int3, obj1a = int2, ptr2, obj1b # error
_ERRORS = u"""
4:31: Cannot assign type 'int *' to 'int'
6:31: Cannot assign type 'int *' to 'int'
"""
......@@ -10,9 +10,9 @@ cdef f():
spam() # too few args
spam("blarg") # too few args
_ERRORS = u"""
5:6: Call with wrong number of arguments (expected 2, got 0)
6:6: Call with wrong number of arguments (expected 2, got 1)
7:6: Call with wrong number of arguments (expected 2, got 3)
8:5: Call with wrong number of arguments (expected at least 2, got 0)
9:5: Call with wrong number of arguments (expected at least 2, got 1)
7:6: Call with wrong number of arguments (expected 2, got 0)
8:6: Call with wrong number of arguments (expected 2, got 1)
9:6: Call with wrong number of arguments (expected 2, got 3)
10:5: Call with wrong number of arguments (expected at least 2, got 0)
11:5: Call with wrong number of arguments (expected at least 2, got 1)
"""
......@@ -5,6 +5,6 @@ cdef class C:
pass
_ERRORS = u"""
2:6: Signature not compatible with previous declaration
2:12: Previous declaration is here
4: 6: Signature not compatible with previous declaration
"""
......@@ -6,5 +6,5 @@ cdef extern from *:
fp = f
_ERRORS = u"""
5:6: Cannot assign type 'void (void)' to 'void (*)(void) nogil'
7:6: Cannot assign type 'void (void)' to 'void (*)(void) nogil'
"""
......@@ -28,7 +28,7 @@ def redef_in_class_scope():
_ERRORS = u"""
3:4: no binding for nonlocal 'no_such_name' found
3:4: no binding for nonlocal 'no_such_name' found
10:8: 'x' redeclared as nonlocal
15:4: no binding for nonlocal 'global_name' found
27:8: 'x' redeclared as nonlocal
......
......@@ -9,10 +9,10 @@ cdef unsigned long double j
_ERRORS = u"""
1:5: Unrecognised type modifier combination
2:5: Unrecognised type modifier combination
3:5: Unrecognised type modifier combination
4:5: Unrecognised type modifier combination
5:5: Unrecognised type modifier combination
6:5: Unrecognised type modifier combination
7:5: Unrecognised type modifier combination
8:5: Unrecognised type modifier combination
"""
......@@ -5,5 +5,5 @@ cdef extern class Grail.Shrubbery
cdef void spam(Shrubbery sh not None):
pass
_ERRORS = u"""
3:15: 'not None' only allowed in Python functions
5:15: 'not None' only allowed in Python functions
"""
......@@ -3,6 +3,6 @@
def eggs(int x not None, char* y not None):
pass
_ERRORS = u"""
1: 9: Only Python type arguments can have 'not None'
1:25: Only Python type arguments can have 'not None'
3: 9: Only Python type arguments can have 'not None'