Fix error line numbers (due to tag additions).
authorRobert Bradshaw <robertwb@math.washington.edu>
Sat, 2 Apr 2011 17:50:18 +0000 (10:50 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sat, 2 Apr 2011 17:50:18 +0000 (10:50 -0700)
109 files changed:
tests/errors/break_outside_loop.pyx
tests/errors/buffertypedef_T117.pyx
tests/errors/builtin_type_inheritance.pyx
tests/errors/callargs.pyx
tests/errors/callingnonexisting_T307.pyx
tests/errors/cdef_members_T517.pyx
tests/errors/cdef_syntax.pyx
tests/errors/cdefoptargs.pyx
tests/errors/cdefspecial.pyx
tests/errors/cmethbasematch.pyx
tests/errors/continue_outside_loop.pyx
tests/errors/cpdef_syntax.pyx
tests/errors/cpp_no_constructor.pyx
tests/errors/cython3_bytes.pyx
tests/errors/declareafteruse_T158.pyx
tests/errors/def_nogil.pyx
tests/errors/e2_packedstruct_T290.pyx
tests/errors/e_addop.pyx
tests/errors/e_argdefault.pyx
tests/errors/e_ass.pyx
tests/errors/e_assnone.pyx
tests/errors/e_autotestdict.pyx
tests/errors/e_badexcvaltype.pyx
tests/errors/e_badfuncargtype.pyx
tests/errors/e_badpyparam.pyx
tests/errors/e_badtypeuse.pyx
tests/errors/e_bitop.pyx
tests/errors/e_boolcoerce.pyx
tests/errors/e_bufaccess.pyx
tests/errors/e_bufaccess2.pyx
tests/errors/e_callnonfunction.pyx
tests/errors/e_callspec.pyx
tests/errors/e_cdef_keywords_T241.pyx
tests/errors/e_cdef_missing_declarator.pyx
tests/errors/e_cdefassign.pyx
tests/errors/e_cdefemptysue.pyx
tests/errors/e_cenum.pyx
tests/errors/e_cmethbasematch.pyx
tests/errors/e_cmp.pyx
tests/errors/e_cstruct.pyx
tests/errors/e_ctypedefforward.pyx
tests/errors/e_ctypedefornot.pyx
tests/errors/e_declarations.pyx
tests/errors/e_del.pyx
tests/errors/e_directives.pyx
tests/errors/e_exceptclause.pyx
tests/errors/e_excvalfunctype.pyx
tests/errors/e_extweakref.pyx
tests/errors/e_generators.pyx
tests/errors/e_index.pyx
tests/errors/e_int_literals_py2.py
tests/errors/e_int_literals_py3.py
tests/errors/e_multass.pyx
tests/errors/e_nargs.pyx
tests/errors/e_nogilcmeth.pyx
tests/errors/e_nogilfunctype.pyx
tests/errors/e_nonlocal_T490.pyx
tests/errors/e_nosignword.pyx
tests/errors/e_notnone.pyx
tests/errors/e_notnone2.pyx
tests/errors/e_numop.pyx
tests/errors/e_packedstruct_T290.pyx
tests/errors/e_powop.pyx
tests/errors/e_pxdimpl.pyx
tests/errors/e_pyobinstruct.pyx
tests/errors/e_return.pyx
tests/errors/e_sizeofincomplete.pyx
tests/errors/e_slice.pyx
tests/errors/e_strcoerce.pyx
tests/errors/e_subop.pyx
tests/errors/e_switch.pyx
tests/errors/e_tempcast.pyx
tests/errors/e_undefexttype.pyx
tests/errors/e_unop.pyx
tests/errors/e_while.pyx
tests/errors/encoding.pyx
tests/errors/extclassattrsetting.pyx
tests/errors/extended_unpacking.pyx
tests/errors/extended_unpacking_parser.pyx
tests/errors/extended_unpacking_parser2.pyx
tests/errors/futurebraces.pyx
tests/errors/invalid_cast.pyx
tests/errors/invalid_hex_escape0.pyx
tests/errors/invalid_hex_escape1.pyx
tests/errors/invalid_uescape.pyx
tests/errors/invalid_uescape0.pyx
tests/errors/invalid_uescape2.pyx
tests/errors/literal_lists.pyx
tests/errors/missing_self_in_cpdef_method_T156.pyx
tests/errors/missing_self_in_cpdef_method_T165.pyx
tests/errors/nogil.pyx
tests/errors/nogilcmeth.pyx
tests/errors/nogilfunctype.pyx
tests/errors/nonconst_def.pyx
tests/errors/notcimportedT418.pyx
tests/errors/py_ucs4_type_errors.pyx
tests/errors/py_unicode_type_errors.pyx
tests/errors/pyobjcastdisallow_T313.pyx
tests/errors/return_outside_function_T135.pyx
tests/errors/se_badindent.pyx
tests/errors/se_badindent2.pyx
tests/errors/se_mixtabspace.pyx
tests/errors/se_multass.pyx
tests/errors/string_assignments.pyx
tests/errors/subtyping_final_class.pyx
tests/errors/tree_assert.pyx
tests/errors/typoT304.pyx
tests/errors/undefinedname.pyx
tests/errors/void_as_arg.pyx

index 0f635b6db80aff51d681d88011cbd9fb1fa706f5..f20b4d335312c0b54d49e322d98cebd3b86ded87 100644 (file)
@@ -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
 '''
index e3592185f5bc194002b9323a5246b6f437091652..927ea23bd6584718e5c664d0726ac1151aa22daa 100644 (file)
@@ -4,5 +4,5 @@
 ctypedef object[float] mybuffer
 
 _ERRORS = u"""
-1:23: Syntax error in ctypedef statement
+4:23: Syntax error in ctypedef statement
 """
index bce347ae400c71be3a621ad5e9cd11bdabdd71bd..c7c02222dc155d2b1b8275fed8b3d639040e03bc 100644 (file)
@@ -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
 """
index c0970da38d200552b52b9af869f2ae3221fad90c..73db3a9776653566a1cac8512f5bdd28a15cb3b2 100644 (file)
@@ -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
 """
index e18064211d344ebeb67a4470cd699db9799044ce..b699326ec94bd6189e897e334eabfa3621c9dc15 100644 (file)
@@ -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
 """
index a19f8aaa3191e57c2e407e893516ed18126a52e8..0b7dfe38087916f527baaad5a665ce221b698c8c 100644 (file)
@@ -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'
 """
 
index a59251e1f339dfe2fadd8aedcf649ff103ec95ea..af2d0d70c6f83e03a828cb4fc5fc9b583271cd56 100644 (file)
@@ -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'
 """
index b58aebad684ef40d74313ad165f8924578c6ebc9..ad807c8d0dd5014c39d2c5405089ffea25efd2ba 100644 (file)
@@ -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)
 """
index 3ae588d60ab0288bc57da73df959ea1e4dfebdb0..0998856aaf36a266fd9a29d76f7325b2277de259 100644 (file)
@@ -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'
 """
index 6c206ae0f16262bef5553fcb4a6d47767c3a643a..9e309f16f47e966559aeff969dd675c270943165 100644 (file)
@@ -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
 """
index a3ed7d77f0b248df6935fa583775464367d494ca..8942bbfec84d0f5d8e1341d9015709189372729f 100644 (file)
@@ -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
 '''
index fe89260bbe34cae3402c20f3eb2bd2a738fac1b8..7c60881359a0436cfe865f0a4651f5c1b48b29c4 100644 (file)
@@ -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'
 """
index f7d933ee23d320047e628cadd9b1ddd276fe21bc..9bb016d6582832d3d1157187ccb6df9a9b4fceac 100644 (file)
@@ -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
 """
index 768e8b16e166327badccd8979e868e9b954d9e59..7d0c84a00bbb584647b56b457737947bff8a51b5 100644 (file)
@@ -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.
 """
index e5bfbce515306a674dbb259c68c3dd285c695e87..bfcd6ca974fe4ce126738138968e08a5f91b2a76 100644 (file)
@@ -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
 """
index f9092d41fa18c132fd7720843f2a2671519f1ebd..16a94cbf92f5abe02e8d861aa89037a633839ad1 100644 (file)
@@ -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
 """
index 12a3ff95e09ac818fdb704cb79fc3bcdb8f539d3..1a0f40f186248636cdf8b4fdf5a3d0a6a0582124 100644 (file)
@@ -5,5 +5,5 @@ cdef packed foo:
     pass
 
 _ERRORS = u"""
-1:12: Expected 'struct', found 'foo'
+4:12: Expected 'struct', found 'foo'
 """
index e8b5aa14b175717e610bce122be4c9498b451f92..650591565cf19f230460d5e0a61d0ee2c13a7194 100644 (file)
@@ -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 *)
 """
index 94a2f454ea4563beec1d9f3a973ad2fa1046a092..d8828741f5042a280c15d01c898cf79aa17a1dc7 100644 (file)
@@ -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
 """
index ce5b8a7e6199edea885ec4cc06d5058cae51cce3..1665971fa80fef131dd4a8693ef7a6ab46a90fa5 100644 (file)
@@ -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
 """
index f0704ba4e1b738e1d9a42ad903d8bb8db0666dce..b8e9ba761d0a8db9713dc9aaf106f0029cb3a90c 100644 (file)
@@ -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
 """
index 44ac57dbc2e6c06b6191722c0cba5c7134a437f2..a5d56f3d262891f971333276e9d6e03fc7847f67 100644 (file)
@@ -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
 """
index 7778cb030a7db2c97b1a7ba5de9812c0763bc40f..ff2cb1f7be594f988eaedaeee9e7a335ca2c6cee 100644 (file)
@@ -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
 """
index e6c37439ac875643bd12732de459269bc88cc2a8..cece614b724388e57c9987da9f9226fb14bab889 100644 (file)
@@ -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
 """
index 401e87f9421fc1d5cc64324aa513a9a371e06659..576acd799bf43182ebc77fb9c1361ff48e161659 100644 (file)
@@ -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 *'
 """
index 028bf1bfaf7dbd8d4f3220da997c845181c6d20a..23cebd0b85584503714a79b2e6c7907dd7af9685 100644 (file)
@@ -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
 """
index 01addd6e3e16ab45c7126916d153813a9f7d0d13..0ced9edbb09566126bea494a493b50cf8f0052cb 100644 (file)
@@ -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 *)
 """
index ea7322540e27689a70763bbb18fac26936ec6d55..36a9b229d74c4df473c5da9f4fdb3409578147cb 100644 (file)
@@ -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
 """
index 8caabd17aaed84bb5dd1baf1d15f825c721c3657..bc5b9c0f324964a95edb7422a0e572ee065c3831 100644 (file)
@@ -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
index e754a25822afda6a842efaecd2f4190cdbf8735b..943ac5a28623c6ed41246974d172736f2bbba015 100644 (file)
@@ -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
 """
index 50c8cc84ed4c7dcf1bda98eade1ce88e25865c49..8dab29a0c4b7528c376cad27de21b4cd45f776f2 100644 (file)
@@ -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'
 """
index ed95fe13a7c230f211a5cedf1d0c67dac84bf9b3..cd02e6c8adb1d64d21ae426690540cad7aedc2cb 100644 (file)
@@ -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)'
index 61667e87a892ece4f7e6adbc940284a695afbb7a..3b1355eefff0dbefee419a9dd0bd7dcab76e6a03 100644 (file)
@@ -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.
 """
index 70983d2b33f2ac594b6c07d878494e0039ab957f..97e9fde41352b42789c9fd54773bb59c6460f37c 100644 (file)
@@ -5,5 +5,5 @@ cdef int
 cdef extern from *:
        void f(int)
 _ERRORS = u"""
-1:8: Empty declarator
+3:8: Empty declarator
 """
index 4bcaa5f9b3473546a18514b0d57c9e83e9b8be83..853359635f729639ad46dc00b22f34036ffad240 100644 (file)
@@ -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
 """
index 652bdbd81f475610932d9f7c34ccfd862c92ebb5..f71370f4a1e41c54ca3a374375ba380e69d430c3 100644 (file)
@@ -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
 """
index 8915958ae83a98c24af99da25943d37816d4c12b..05df9612397bc8a1aeef6ae8d0805f6cb40a9f2f 100644 (file)
@@ -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'
 """
index 4a41531716368b561ce630e6504c95b91d038e45..45651f90644fbc4f2139791d7059bf5c1145bedf 100644 (file)
@@ -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
 """
index 6c7d5dca77a9ca5ab04d3a046eb0c3d98125fab0..2b6e5e64845dede2b17d0d6a4df4429159c4f3d0 100644 (file)
@@ -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 *)
 """
index bd995bf32f531410b38bc228188014e33e2445c6..3d4ce9b143c5fd79afaed6cfff5f5ad5b789456e 100644 (file)
@@ -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'
 """
index 2936e5c831e015bddd41518376921f3450636f94..2b992c097967dc57be98cf0d3f398e5cc8a6cddf 100644 (file)
@@ -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'
 """
index 25f2ab944eaff17a8351c75f4775c7d99bde29d5..67563099fe052e0d4af7ced07b966864364f624a 100644 (file)
@@ -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'
 """
index f749f1ce7be7d7bef9ef0d545a52d205351c1d6b..732fea293532d36e3dfd100821eba9c572511e37 100644 (file)
@@ -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
 """
index 72e6f1fb406662b4d415a1d8571c3e4ac82221db..63116b407298b4396c7252c1f23b8a64832c76b9 100644 (file)
@@ -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
 """
index ad2aabae536eb3b1e131b898648e439900d82109..a8e57427d43a18a83acd3a4be332d98eccf87ee8 100644 (file)
@@ -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'
 """
index 25bac3de3d39b99b7b822d28cfbc4bdc59a074e2..3dcb37c024adaaf616fb20e3b2e064f824b4cb65 100644 (file)
@@ -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
 """
index 8be36a50166d78697f44c23265a493d832d2582b..9ab2e802aad56ed60c3f774045962f6fb095bc4d 100644 (file)
@@ -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'
 """
index 185b25caa5aea90728f549342b46346ee5c1f8a5..fc5f343481dcf9bc05ecffbf902a9f1191fe2ad5 100644 (file)
@@ -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__
 """
index af5ca738a0898c95b691c54f62e86a78de4c830c..d13da55d333be1835018d6f3f84e55ea87e2554e 100644 (file)
@@ -1,3 +1,5 @@
+# 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
 """
index 423eb3b8f69c8d766fb5419c1fc7ebfd335db898..e32e1a1399ac077ed892291da97e9b272e5c1344 100644 (file)
@@ -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
 """
index f9924fa65db607a4f42086dfcbcbb770abe78f5b..9eef366733cd98ec1347dcf4908e1ba83292e948 100644 (file)
@@ -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
 """
index b5b49c3fe9b34c583eab8504074965e996126788..351fcd065b6966d8c26eebd8b7aa08da585040dd 100644 (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
 """
index 1cd99113715fb672b7ed947bc719f0367ebbca64..2005d5b08df6e20aa983737b963a8ea44a773cb5 100644 (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'
 """
index 500772c703f3cf00e5e8a05fa3769103557ae815..7cc2a95a145abc0cb6550bf28ab1ecb5a7d0793a 100644 (file)
@@ -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)
 """
index 6525292c68c80410278c744e0b82c210c0252499..02ab59b4b8a1f4835cf2f54eefd80cab02477d3f 100644 (file)
@@ -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
 """
index f2564750c5855e67ae253753641ef54c5cca893d..4ec06c1a2123979fed3694b20145c99b521a4caf 100644 (file)
@@ -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'
 """
index 0fa7804cfd9a0ea4ad3be9576db5643cb64c70d6..0079df2dcd979dcae3b208bc5be6409e13fa6173 100644 (file)
@@ -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
index 7bb72a24ed571788b84f8a30bbe1a3782ad501f2..a755e25c71f015c9b614877ff654973092de3527 100644 (file)
@@ -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
 """
index 3d1e4bf4123d94209c927e579c49422ec61bd683..25679762e7e7d5ac13751b38e7feb96f89a94e70 100644 (file)
@@ -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
 """
index 9644077163f5e17b8cea9ee793fc7be19f675468..dd4f85d0baf0b17bd08d8015cea2a60076d39fdd 100644 (file)
@@ -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'
+3:25: Only Python type arguments can have 'not None'
 """
index 0257b11dee3d8e69617ed87633063b788b7a2a17..cada3c86b4bdc9c9fc1e07d2a339b01c9d570154 100644 (file)
@@ -5,5 +5,5 @@ def f():
        cdef int *ptr
        int1 = int2 * ptr # error
 _ERRORS = u"""
-4:13: Invalid operand types for '*' (int; int *)
+6:13: Invalid operand types for '*' (int; int *)
 """
index 0ae8776ec75494a7e01a4f349f6c00be29940453..cf2df11fd54e0aa496ab882133a0a5001628fab9 100644 (file)
@@ -6,5 +6,5 @@ cdef extern:
         char a
 
 _ERRORS = u"""
-2:9: Cannot declare extern struct as 'packed'
+5:9: Cannot declare extern struct as 'packed'
 """
index 31b6f40676950f67cb13498d40a7cbe42faf483d..bfef061b03b632155b4f8ec81c5a10f2b85774e4 100644 (file)
@@ -7,6 +7,6 @@ def f():
        flt1 = flt2 ** str1 # error
 
 _ERRORS = u"""
-4:13: Invalid operand types for '**' (char *; float)
-5:13: Invalid operand types for '**' (float; char *)
+6:13: Invalid operand types for '**' (char *; float)
+7:13: Invalid operand types for '**' (float; char *)
 """
index d405f1d0c19bec75dae6c91930146cb664d81d4c..a1e40287be90d72868c373ae7beefdb29393d020 100644 (file)
@@ -3,7 +3,7 @@
 cimport e_pxdimpl_imported
 
 _ERRORS = u"""
-6:4: function definition in pxd file must be declared 'cdef inline'
+ 6:4: function definition in pxd file must be declared 'cdef inline'
 18:4: function definition in pxd file must be declared 'cdef inline'
 23:8: function definition in pxd file must be declared 'cdef inline'
 """
index 7ec74006d16d15e03d9d96011f76a3468b6ea697..c5342f16ac76dd4b0c93c4032e5d40c6532216b0 100644 (file)
@@ -9,5 +9,5 @@ def f():
        cdef spam s
        s.parrot = x
 _ERRORS = u"""
-4:8: C struct/union member cannot be a Python object
+6:8: C struct/union member cannot be a Python object
 """
index 10713c76ee0ed6ed82a3361bbfc59db07cbaa062..21ecb8b4c820f388a7f30a877b55f04efcd61271 100644 (file)
@@ -9,7 +9,7 @@ cdef int h():
        return # error
        return p # error
 _ERRORS = u"""
-3:17: Return with value in void function
-7:1: Return value required
-8:17: Cannot assign type 'int *' to 'int'
+5:17: Return with value in void function
+9:1: Return value required
+10:17: Cannot assign type 'int *' to 'int'
 """
index b4ebe9076a201aa3bdf34a43368deae6fbdd12eb..56e5582bcb6db7060558af3fd78bfe038eb897dc 100644 (file)
@@ -4,5 +4,5 @@ cdef struct unbekannt
 cdef int n
 n = sizeof(unbekannt)
 _ERRORS = u"""
-3:4: Cannot take sizeof incomplete type 'unbekannt'
+5:4: Cannot take sizeof incomplete type 'unbekannt'
 """
index ff692167285c9a30c345d68b4bfe8adeb6eef91e..4a14ba5a3ad6029761e5e6ffc3d184130813a497 100644 (file)
@@ -17,10 +17,10 @@ for a in int_ptr[2:2:a]:
     pass
 
 _ERRORS = u"""
-3:20: Cannot convert 'int *' to Python object
-4:21: Cannot convert 'int *' to Python object
-5:22: Cannot convert 'int *' to Python object
-10:16: C array iteration requires known end index
+5:20: Cannot convert 'int *' to Python object
+6:21: Cannot convert 'int *' to Python object
+7:22: Cannot convert 'int *' to Python object
 12:16: C array iteration requires known end index
-14:22: C array iteration requires known step size and end index
+14:16: C array iteration requires known end index
+16:22: C array iteration requires known step size and end index
 """
index 50d8a45d4606e313a7bcbdaf7d9de0d1fee1f63a..515657ea11842f8a37518c75045c21854e195afa 100644 (file)
@@ -12,8 +12,8 @@ cdef int u3 = u"\xFF"          # fails
 
 
 _ERRORS = """
-2:14: Only single-character string literals can be coerced into ints.
-3:14: Only single-character string literals can be coerced into ints.
-6:15: Only single-character string literals can be coerced into ints.
-9:14: Unicode literals do not support coercion to C types other than Py_UNICODE or Py_UCS4.
+4:14: Only single-character string literals can be coerced into ints.
+5:14: Only single-character string literals can be coerced into ints.
+8:15: Only single-character string literals can be coerced into ints.
+11:14: Unicode literals do not support coercion to C types other than Py_UNICODE or Py_UCS4.
 """
index 4dbe842a26ccf9ba16b5e6e5eb0aa108f2009d2c..6594d02e64ba0c1228b51cded790c67e9603b4fb 100644 (file)
@@ -6,6 +6,6 @@ def f():
        ptr1 = int2 - ptr3 # error
        ptr1 = ptr2 - ptr3 # error
 _ERRORS = u"""
-4:13: Invalid operand types for '-' (int; char *)
-5:13: Cannot assign type 'int' to 'char *'
+6:13: Invalid operand types for '-' (int; char *)
+7:13: Cannot assign type 'int' to 'char *'
 """
index 342023ddc4bc0881421e58d08336680547cc50fa..ff67d4018252e95d7fb0cade2bdc64f91bd5da9e 100644 (file)
@@ -10,5 +10,5 @@ elif x == 4:
     print 34
 
 _ERRORS = u"""
-3:19: undeclared name not builtin: NONEXISTING
+5:19: undeclared name not builtin: NONEXISTING
 """
index a68b688afe98defb094ceeedaa257c52290ebe55..ff89915e2e8d0e3c0330cf4f83d3988bdbc24eb3 100644 (file)
@@ -8,5 +8,5 @@ def foo(obj):
        p = <void *>(obj + blarg) # error - temporary
 
 _ERRORS = u"""
-6:5: Casting temporary Python object to non-numeric non-Python type
+8:5: Casting temporary Python object to non-numeric non-Python type
 """
index 56e76c57e0e6323543901fbb3817593f81eba492..3a68f8b3cc94668847d4cbb84339a4e934055264 100644 (file)
@@ -3,6 +3,6 @@
 cdef class Spam
 cdef extern class external.Eggs
 _ERRORS = u"""
-1:5: C class 'Spam' is declared but not defined
-2:5: C class 'Eggs' is declared but not defined
+3:5: C class 'Spam' is declared but not defined
+4:5: C class 'Eggs' is declared but not defined
 """
index 23d2cd9c0bc3f2446e593a4d156ccd232351467d..302a3e737c6dcd146a6c8ad54286c511d4e1c234 100644 (file)
@@ -6,6 +6,6 @@ def f():
        int1 = -str2 # error
        int1 = ~str2 # error
 _ERRORS = u"""
-4:8: Invalid operand type for '-' (char *)
-5:8: Invalid operand type for '~' (char *)
+6:8: Invalid operand type for '-' (char *)
+7:8: Invalid operand type for '~' (char *)
 """
index b35c069f4a32971def534eaf87eb8a5342114457..95d2c491f96403228b192c848a450185c149b4e0 100644 (file)
@@ -5,6 +5,6 @@ def f(a, b):
        break # error
        continue # error
 _ERRORS = u"""
-3:1: break statement not inside loop
-4:1: continue statement not inside loop
+5:1: break statement not inside loop
+6:1: continue statement not inside loop
 """
index f7e4a55794632fc3ac02d2a72d8fcbaf32c62875..2866edc40fa919325c4eb2ca9665b2698a394a40 100644 (file)
@@ -1,10 +1,10 @@
-# mode: error
 # coding=ASCII
+# mode: error
 
 """
 Tr\8fs bien.
 """
 
 _ERRORS = u"""
-0:0:Decoding error, missing or incorrect coding=<encoding-name> at top of source ('ascii' codec can't decode byte 0x8f in position 22: ordinal not in range(128))
+0:0:Decoding error, missing or incorrect coding=<encoding-name> at top of source ('ascii' codec can't decode byte 0x8f in position 36: ordinal not in range(128))
 """
index bab7b9e2f5821a5e240267c9152bc97fc4b0ad89..29182cad7005fd39a65ff21e17cfbc2dd2286010 100644 (file)
@@ -15,5 +15,5 @@ cdef class ExtClass:
     _attribute = 5     # FIXME: this is not currently handled!!!
 
 _ERRORS = u"""
-8:13: Cannot assign default value to fields in cdef classes, structs or unions
+10:13: Cannot assign default value to fields in cdef classes, structs or unions
 """
index 0ff3a61eadd56005fc9e2a1046f39d83222227e8..eeae75670786fa7c42d485d62fb3fd2b35b8397e 100644 (file)
@@ -33,19 +33,19 @@ def types(l):
 
 _ERRORS = u"""
 # syntax1()
7: 4: can use starred expression only as assignment target
- 9: 4: can use starred expression only as assignment target
-11: 4: can use starred expression only as assignment target
-13: 4: can use starred expression only as assignment target
-15: 5: can use starred expression only as assignment target
-15: 9: can use starred expression only as assignment target
-17:11: can use starred expression only as assignment target
-17:24: can use starred expression only as assignment target
8: 4: can use starred expression only as assignment target
+10: 4: can use starred expression only as assignment target
+12: 4: can use starred expression only as assignment target
+14: 4: can use starred expression only as assignment target
+16: 5: can use starred expression only as assignment target
+16: 9: can use starred expression only as assignment target
+18:11: can use starred expression only as assignment target
+18:24: can use starred expression only as assignment target
 
 # syntax2()
-23:11: more than 1 starred expression in assignment
+24:11: more than 1 starred expression in assignment
 
 # types()
-29:15: Cannot coerce list to type 'int'
-30:10: starred target must have Python object (list) type
+30:15: Cannot coerce list to type 'int'
+31:10: starred target must have Python object (list) type
 """
index 5546de1afdacc4bfd93a2192a9b34bca74f77c10..e362510bc749545e42c1d596febe97376cdeeef0 100644 (file)
@@ -23,11 +23,11 @@ def length_recursive():
 
 
 _ERRORS = u"""
- 5:4: too many values to unpack (expected 2, got 3)
- 8:4: need more than 1 value to unpack
-11:4: need more than 0 values to unpack
-14:4: need more than 0 values to unpack
-17:4: need more than 0 values to unpack
-18:4: need more than 1 value to unpack
-21:6: need more than 1 value to unpack
+6:4: too many values to unpack (expected 2, got 3)
+9:4: need more than 1 value to unpack
+12:4: need more than 0 values to unpack
+15:4: need more than 0 values to unpack
+18:4: need more than 0 values to unpack
+19:4: need more than 1 value to unpack
+22:6: need more than 1 value to unpack
 """
index fe076b7400c466cf7e9f8ad00346818d236b8982..13bdc884826335203742e059aefb78dfd4477cff 100644 (file)
@@ -7,6 +7,6 @@ def syntax():
 
 
 _ERRORS = u"""
-5:4: more than 1 starred expression in assignment
-5:8: more than 1 starred expression in assignment
+6:4: more than 1 starred expression in assignment
+6:8: more than 1 starred expression in assignment
 """
index 5a72e6f6510a44f9b8ac3d5ba751a9b5b5d90be0..c5cb4d63f1e6f27ea5302fed75ef9574e7822a1d 100644 (file)
@@ -3,5 +3,5 @@
 from __future__ import braces
 
 _ERRORS = u"""
-1:23: not a chance
+3:23: not a chance
 """
index 05cd0b99fa743c67689d1dee909d5a220dbb2efb..256b96c2727f47fbe240c1c743a82995c799e5d8 100644 (file)
@@ -4,5 +4,5 @@ def f():
     a = <foao>True
 
 _ERRORS = u"""
-2:9: 'foao' is not a type identifier
+4:9: 'foao' is not a type identifier
 """
index a80d6a5b9c1f5bdc38a9c64b18421e5eed41163a..7b3a48f89fc347c8ea789f342c30bba423ebef64 100644 (file)
@@ -3,5 +3,5 @@
 '\x'
 
 _ERRORS = '''
-2:1: Invalid hex escape '\x'
+3:1: Invalid hex escape '\x'
 '''
index 805935425af477103e65ece966da37a7abe065cd..6fe93e137e4f67d118cecef55acb6b8e81780af7 100644 (file)
@@ -3,5 +3,5 @@
 '\x1'
 
 _ERRORS = '''
-2:1: Invalid hex escape '\x'
+3:1: Invalid hex escape '\x'
 '''
index e358594bb8891f6ffbe6cdcc0b2257e4cf61045c..bc2487a55ad9a2d967b72e4f97b83f6ed6bf50a8 100644 (file)
@@ -3,5 +3,5 @@
 u'\uXYZ'
 
 _ERRORS = '''
-2:2: Invalid unicode escape '\u'
+3:2: Invalid unicode escape '\u'
 '''
index 06c2fc40c5e8cecaae8dc7f54aa1b2c9c4368f3b..685f405e18f6d8f424b0b0dbc76b654f30aa28f1 100644 (file)
@@ -3,5 +3,5 @@
 u'\u'
 
 _ERRORS = '''
-2:2: Invalid unicode escape '\u'
+3:2: Invalid unicode escape '\u'
 '''
index 59328f692c30a5fea6eb0e5bf7fe405e1e2f2ce0..9a22eb1e26d74bc53610896fdf8e2ca898a2266a 100644 (file)
@@ -3,5 +3,5 @@
 u'\u12'
 
 _ERRORS = '''
-2:2: Invalid unicode escape '\u'
+3:2: Invalid unicode escape '\u'
 '''
index 46751d62d5a7f706ba1a712968260ee634feef2a..2b445c6ec53d0f158cacb6c3168eff881f5c9a28 100644 (file)
@@ -9,5 +9,5 @@ def false():
     return False
 
 _ERRORS = u"""
-4:10: Literal list must be assigned to pointer at time of declaration
+6:10: Literal list must be assigned to pointer at time of declaration
 """
index 7a3c8b78f4ffac3d69b68fbaad671f21a947d6a6..21241a2210f986afda2206ff392fbf8fb39158fb 100644 (file)
@@ -6,5 +6,5 @@ cdef class B:
         pass
 
 _ERRORS = u"""
-3:10: C method has no self argument
+5:10: C method has no self argument
 """
index fce40f621da73564d0664a3a151aacf1a2872ac9..6a95922d53232982c9d07baa1316babaaf553310 100644 (file)
@@ -6,5 +6,5 @@ cdef class A:
         pass
 
 _ERRORS = u"""
-3:10: Self argument (int) of C method 'a' does not match parent type (A)
+5:10: Self argument (int) of C method 'a' does not match parent type (A)
 """
index f1d318d834cee8311397e4a1c4276b5005299c47..512e1b67d164ca589dea13b15058516c3fd02877 100644 (file)
@@ -92,71 +92,71 @@ def bare_pyvar_name(object x):
 # except these: 29, 34, 44, 56, 58, 60, 62-64
 
 _ERRORS = u"""
-1:5: Function with Python return type cannot be declared nogil
-4:5: Function declared nogil has Python locals or temporaries
-6:6: Assignment of Python object not allowed without gil
-9:5: Discarding owned Python object not allowed without gil
-11:5: Function with Python return type cannot be declared nogil
-15:5: Calling gil-requiring function not allowed without gil
-24:9: Calling gil-requiring function not allowed without gil
-26:12: Assignment of Python object not allowed without gil
-28:8: Discarding owned Python object not allowed without gil
-28:16: Constructing complex number not allowed without gil
-30:8: Backquote expression not allowed without gil
+3:5: Function with Python return type cannot be declared nogil
+6:5: Function declared nogil has Python locals or temporaries
+8:6: Assignment of Python object not allowed without gil
+11:5: Discarding owned Python object not allowed without gil
+13:5: Function with Python return type cannot be declared nogil
+17:5: Calling gil-requiring function not allowed without gil
+26:9: Calling gil-requiring function not allowed without gil
+28:12: Assignment of Python object not allowed without gil
 30:8: Discarding owned Python object not allowed without gil
-30:9: Operation not allowed without gil
-31:15: Assignment of Python object not allowed without gil
-31:15: Operation not allowed without gil
-31:15: Python import not allowed without gil
-32:8: Operation not allowed without gil
-32:13: Python import not allowed without gil
-32:25: Constructing Python list not allowed without gil
-32:25: Operation not allowed without gil
-33:17: Iterating over Python object not allowed without gil
-35:11: Discarding owned Python object not allowed without gil
-35:11: Indexing Python object not allowed without gil
-36:11: Discarding owned Python object not allowed without gil
-36:11: Slicing Python object not allowed without gil
-37:11: Constructing Python slice object not allowed without gil
+30:16: Constructing complex number not allowed without gil
+32:8: Backquote expression not allowed without gil
+32:8: Discarding owned Python object not allowed without gil
+32:9: Operation not allowed without gil
+33:15: Assignment of Python object not allowed without gil
+33:15: Operation not allowed without gil
+33:15: Python import not allowed without gil
+34:8: Operation not allowed without gil
+34:13: Python import not allowed without gil
+34:25: Constructing Python list not allowed without gil
+34:25: Operation not allowed without gil
+35:17: Iterating over Python object not allowed without gil
 37:11: Discarding owned Python object not allowed without gil
 37:11: Indexing Python object not allowed without gil
-37:13: Converting to Python object not allowed without gil
-37:15: Converting to Python object not allowed without gil
-37:17: Converting to Python object not allowed without gil
-38:11: Accessing Python attribute not allowed without gil
 38:11: Discarding owned Python object not allowed without gil
-39:9: Constructing Python tuple not allowed without gil
-39:9: Discarding owned Python object not allowed without gil
-40:8: Constructing Python list not allowed without gil
-40:8: Discarding owned Python object not allowed without gil
-41:8: Constructing Python dict not allowed without gil
-41:8: Discarding owned Python object not allowed without gil
-42:12: Discarding owned Python object not allowed without gil
-42:12: Truth-testing Python object not allowed without gil
-43:13: Python type test not allowed without gil
-45:10: Discarding owned Python object not allowed without gil
-45:10: Operation not allowed without gil
-46:8: Discarding owned Python object not allowed without gil
-46:8: Operation not allowed without gil
-47:10: Assignment of Python object not allowed without gil
-47:14: Assignment of Python object not allowed without gil
-48:9: Assignment of Python object not allowed without gil
-48:13: Assignment of Python object not allowed without gil
-48:16: Creating temporary Python reference not allowed without gil
-48:19: Creating temporary Python reference not allowed without gil
-49:11: Assignment of Python object not allowed without gil
-49:11: Indexing Python object not allowed without gil
-50:11: Accessing Python attribute not allowed without gil
-50:11: Assignment of Python object not allowed without gil
-51:8: Constructing Python tuple not allowed without gil
-51:8: Python print statement not allowed without gil
-52:8: Deleting Python object not allowed without gil
-53:8: Returning Python object not allowed without gil
-54:8: Raising exception not allowed without gil
-55:14: Truth-testing Python object not allowed without gil
-57:17: Truth-testing Python object not allowed without gil
-59:8: For-loop using object bounds or target not allowed without gil
-61:8: Try-except statement not allowed without gil
-65:8: Try-finally statement not allowed without gil
-82:8: For-loop using object bounds or target not allowed without gil
+38:11: Slicing Python object not allowed without gil
+39:11: Constructing Python slice object not allowed without gil
+39:11: Discarding owned Python object not allowed without gil
+39:11: Indexing Python object not allowed without gil
+39:13: Converting to Python object not allowed without gil
+39:15: Converting to Python object not allowed without gil
+39:17: Converting to Python object not allowed without gil
+40:11: Accessing Python attribute not allowed without gil
+40:11: Discarding owned Python object not allowed without gil
+41:9: Constructing Python tuple not allowed without gil
+41:9: Discarding owned Python object not allowed without gil
+42:8: Constructing Python list not allowed without gil
+42:8: Discarding owned Python object not allowed without gil
+43:8: Constructing Python dict not allowed without gil
+43:8: Discarding owned Python object not allowed without gil
+44:12: Discarding owned Python object not allowed without gil
+44:12: Truth-testing Python object not allowed without gil
+45:13: Python type test not allowed without gil
+47:10: Discarding owned Python object not allowed without gil
+47:10: Operation not allowed without gil
+48:8: Discarding owned Python object not allowed without gil
+48:8: Operation not allowed without gil
+49:10: Assignment of Python object not allowed without gil
+49:14: Assignment of Python object not allowed without gil
+50:9: Assignment of Python object not allowed without gil
+50:13: Assignment of Python object not allowed without gil
+50:16: Creating temporary Python reference not allowed without gil
+50:19: Creating temporary Python reference not allowed without gil
+51:11: Assignment of Python object not allowed without gil
+51:11: Indexing Python object not allowed without gil
+52:11: Accessing Python attribute not allowed without gil
+52:11: Assignment of Python object not allowed without gil
+53:8: Constructing Python tuple not allowed without gil
+53:8: Python print statement not allowed without gil
+54:8: Deleting Python object not allowed without gil
+55:8: Returning Python object not allowed without gil
+56:8: Raising exception not allowed without gil
+57:14: Truth-testing Python object not allowed without gil
+59:17: Truth-testing Python object not allowed without gil
+61:8: For-loop using object bounds or target not allowed without gil
+63:8: Try-except statement not allowed without gil
+67:8: Try-finally statement not allowed without gil
+84:8: For-loop using object bounds or target not allowed without gil
 """
index b342d997c7f64abda4b88b981cc37ff9d7cee384..c2c2cc3c9538e1a11c29b2dc81eb60db39365239 100644 (file)
@@ -5,6 +5,6 @@ cdef class C:
         pass
 
 _ERRORS = u"""
-2:9: Signature not compatible with previous declaration
 2:15: Previous declaration is here
+4:9: Signature not compatible with previous declaration
 """
index 7442761bf03eafa02ad1dbca4fe0daf17d186deb..9baec0c18cedfd089f2b9c3c64cc9f459ccb8020 100644 (file)
@@ -12,5 +12,5 @@ gp = g
 fp = f
 
 _ERRORS = u"""
-10:6: Cannot assign type 'void (void)' to 'void (*)(void) nogil'
+12:6: Cannot assign type 'void (void)' to 'void (*)(void) nogil'
 """
index abc28be56cab5f7dc8e52096ab640f305e3863d3..4b7c101f1a59af7d48e8d2e313de1a3285b3ee39 100644 (file)
@@ -4,6 +4,6 @@ import os
 DEF ospath = os.path
 
 _ERRORS = u"""
-2:15: Compile-time name 'os' not defined
-2:15: Error in compile-time expression: AttributeError: 'NoneType' object has no attribute 'path'
+4:15: Compile-time name 'os' not defined
+4:15: Error in compile-time expression: AttributeError: 'NoneType' object has no attribute 'path'
 """
index f826368b38e57bf96398d3dd602e595c1eb7790e..980d66555bfa250dfe667525f77899ed8ff83aef 100644 (file)
@@ -6,5 +6,5 @@ import somemod.child
 cdef somemod.child.something x
 
 _ERRORS = u"""
-3:5: 'somemod.child' is not a cimported module
+6:5: 'somemod.child' is not a cimported module
 """
index 32a0e4592ce0791cc49ec07f2a914d5a2cb0bfdd..d9ed8255d2861a216215f4d0b17145c8ba82a9e1 100644 (file)
@@ -18,8 +18,8 @@ def char_too_long_latin1():
 
 
 _ERRORS = """
7:21: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
-10:21: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
-13:21: Only single-character string literals can be coerced into ints.
-16:37: Bytes literals cannot coerce to Py_UNICODE/Py_UCS4, use a unicode literal instead.
8:21: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
+11:21: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
+14:21: Only single-character string literals can be coerced into ints.
+17:37: Bytes literals cannot coerce to Py_UNICODE/Py_UCS4, use a unicode literal instead.
 """
index 857f3dc88df43b106e996b2f2a5464d47620edb8..47e33489731632a893f2ecd66db95b5d7dcea808 100644 (file)
@@ -18,8 +18,8 @@ def char_too_long_latin1():
 
 
 _ERRORS = """
7:24: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
-10:24: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
-13:24: Only single-character string literals can be coerced into ints.
-16:40: Bytes literals cannot coerce to Py_UNICODE/Py_UCS4, use a unicode literal instead.
8:24: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
+11:24: Only single-character Unicode string literals or surrogate pairs can be coerced into Py_UCS4/Py_UNICODE.
+14:24: Only single-character string literals can be coerced into ints.
+17:40: Bytes literals cannot coerce to Py_UNICODE/Py_UCS4, use a unicode literal instead.
 """
index c32514158061001716b72f1a972921a449aecd3a..5048719d8241fafdfb9e46e7faf8706b740ee79f 100644 (file)
@@ -7,5 +7,5 @@ cdef void* allowed = <void*>a
 cdef double* disallowed = <double*>a
 
 _ERRORS = u"""
-5:26: Python objects cannot be cast to pointers of primitive types
+7:26: Python objects cannot be cast to pointers of primitive types
 """
index d5e0f462ed5ff2695e6d62d5c038f67ab57dc038..8877278069d254ff5e613f50dd1e2e0a7ed05bf6 100644 (file)
@@ -31,13 +31,13 @@ else:
 
 
 _ERRORS = u'''
- 5:0: Return not inside a function body
- 8:4: Return not inside a function body
-11:4: Return not inside a function body
-13:5: Return not inside a function body
-16:5: Return not inside a function body
-20:4: Return not inside a function body
-23:4: Return not inside a function body
-26:4: Return not inside a function body
+7:0: Return not inside a function body
+10:4: Return not inside a function body
+13:4: Return not inside a function body
+15:5: Return not inside a function body
+18:5: Return not inside a function body
+22:4: Return not inside a function body
+25:4: Return not inside a function body
 28:4: Return not inside a function body
+30:4: Return not inside a function body
 '''
index 1b29a84556b8336035a9ce06a5effa6396f1e911..cf4361d081483e5a173d4b754b6fa05256834de4 100644 (file)
@@ -4,5 +4,5 @@ def f():
   a = b # space space
        c = d # space tab
 _ERRORS = u"""
-3:0: Mixed use of tabs and spaces
+5:0: Mixed use of tabs and spaces
 """
index 3c68d8f6f40a69324e12449e6d5fafe00c58e4b5..4288b96a01e382d9bed13acea4bdc7ae5edcb0ff 100644 (file)
@@ -4,6 +4,6 @@ def f():
        a = b
                c = d
 _ERRORS = u"""
-3:0: Possible inconsistent indentation
-3:0: Expected an identifier or literal
+5:0: Possible inconsistent indentation
+5:0: Expected an identifier or literal
 """
index af28e7123353e106f54dc5ebfe06a45caa9dd832..aba75a9e1295600785a34404ea1cffb29b633250 100644 (file)
@@ -4,5 +4,5 @@ def f():
  a = b # space space
        c = d # tab
 _ERRORS = u"""
-3:0: Mixed use of tabs and spaces
+5:0: Mixed use of tabs and spaces
 """
index c53ca02fc8be0767df960001dd7325e4b764fb6e..cad699e28b6b5c80adc11ce8f8b7f4391e436be0 100644 (file)
@@ -4,5 +4,5 @@ def f(obj1a, obj2a, obj3a, obj1b, obj2b, obj3b, obj4b):
        obj1a, (obj2a, obj3a) = obj1b, (obj2b, obj3b, obj4b)
 
 _ERRORS = u"""
-2:9: too many values to unpack (expected 2, got 3)
+4:9: too many values to unpack (expected 2, got 3)
 """
index f5484c3aacc3db04b91cc0cdcd7fdcbc44f8ad44..820d19cc5ec26914f00e1a654ea42c6fcfed72d8 100644 (file)
@@ -51,26 +51,26 @@ cdef list  l_f2 = b1
 cdef list  l_f3 = u1
 
 _ERRORS = u"""
-25:20: Unicode literals do not support coercion to C types other than Py_UNICODE or Py_UCS4.
-26:22: Unicode objects do not support coercion to C types.
-27:22: 'str' objects do not support coercion to C types (use 'bytes'?).
-
-29:20: Cannot convert Unicode string to 'bytes' implicitly, encoding required.
-30:22: Cannot convert Unicode string to 'bytes' implicitly, encoding required.
-31:22: Cannot convert 'str' to 'bytes' implicitly. This is not portable.
-
-33:17: Cannot convert 'bytes' object to str implicitly. This is not portable to Py3.
-34:19: Cannot convert 'bytes' object to str implicitly. This is not portable to Py3.
-35:17: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.
-36:19: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.
-
-38:20: str objects do not support coercion to unicode, use a unicode string literal instead (u'')
-39:22: str objects do not support coercion to unicode, use a unicode string literal instead (u'')
-40:20: Cannot convert 'bytes' object to unicode implicitly, decoding required
-41:22: Cannot convert 'bytes' object to unicode implicitly, decoding required
-42:22: Cannot convert 'char*' to unicode implicitly, decoding required
-
-44:19: Cannot assign type 'str object' to 'tuple object'
-45:18: Cannot assign type 'unicode object' to 'tuple object'
-46:18: Cannot assign type 'bytes object' to 'tuple object'
+26:20: Unicode literals do not support coercion to C types other than Py_UNICODE or Py_UCS4.
+27:22: Unicode objects do not support coercion to C types.
+28:22: 'str' objects do not support coercion to C types (use 'bytes'?).
+
+30:20: Cannot convert Unicode string to 'bytes' implicitly, encoding required.
+31:22: Cannot convert Unicode string to 'bytes' implicitly, encoding required.
+32:22: Cannot convert 'str' to 'bytes' implicitly. This is not portable.
+
+34:17: Cannot convert 'bytes' object to str implicitly. This is not portable to Py3.
+35:19: Cannot convert 'bytes' object to str implicitly. This is not portable to Py3.
+36:17: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.
+37:19: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.
+
+39:20: str objects do not support coercion to unicode, use a unicode string literal instead (u'')
+40:22: str objects do not support coercion to unicode, use a unicode string literal instead (u'')
+41:20: Cannot convert 'bytes' object to unicode implicitly, decoding required
+42:22: Cannot convert 'bytes' object to unicode implicitly, decoding required
+43:22: Cannot convert 'char*' to unicode implicitly, decoding required
+
+45:19: Cannot assign type 'str object' to 'tuple object'
+46:18: Cannot assign type 'unicode object' to 'tuple object'
+47:18: Cannot assign type 'bytes object' to 'tuple object'
 """
index a2748c0e1841162e862472372bf477f8ffabdbc1..05c5a9e9ed1b58f63933615564b2bf5d2bc57835 100644 (file)
@@ -10,5 +10,5 @@ cdef class SubType(FinalClass):
     pass
 
 _ERRORS = """
-8:5: Base class 'FinalClass' of type 'SubType' is final
+9:5: Base class 'FinalClass' of type 'SubType' is final
 """
index 35beefe4476ca92ff92c160ce03b3ac8fc441041..81ae9a1d395cbb13d249d51d3882d7e20931f8f6 100644 (file)
@@ -11,8 +11,8 @@ def test():
 
 
 _ERRORS = u"""
-8:0: Expected path '//ComprehensionNode' not found in result tree
-8:0: Expected path '//ComprehensionNode//FuncDefNode' not found in result tree
-8:0: Unexpected path '//NameNode' found in result tree
-8:0: Unexpected path '//SimpleCallNode' found in result tree
+9:0: Expected path '//ComprehensionNode' not found in result tree
+9:0: Expected path '//ComprehensionNode//FuncDefNode' not found in result tree
+9:0: Unexpected path '//NameNode' found in result tree
+9:0: Unexpected path '//SimpleCallNode' found in result tree
 """
index bf7400246ebc726cc48387d40a9e48c27e515418..7c736c898d936a5519664b1e3a9cf1a1e9457dbb 100644 (file)
@@ -5,5 +5,5 @@ def f():
     print assert sizeof(int) == sizof(short) == sizeof(long)
 
 _ERRORS = u"""
-3:10: Expected an identifier or literal
+5:10: Expected an identifier or literal
 """
index 8b531e775cf4f47881814860afb95b5326f749fe..4990dde37856263691719004dd3dd9405acc51d0 100644 (file)
@@ -6,6 +6,6 @@ def test(i):
     return _this_local_name_does_not_exist_
 
 _ERRORS = u"""
-1:37:undeclared name not builtin: _this_global_name_does_not_exist_
-4:43:undeclared name not builtin: _this_local_name_does_not_exist_
+3:37:undeclared name not builtin: _this_global_name_does_not_exist_
+6:43:undeclared name not builtin: _this_local_name_does_not_exist_
 """
index 1ae855c2d2fec1d8cd24b5f6b4b1e2eafbdbc052..6122b00edd48541f23fde654867469ee0e59c837 100644 (file)
@@ -4,5 +4,5 @@ cdef extern from *:
     void foo(void)
 
 _ERRORS = u"""
-2:13:Use spam() rather than spam(void) to declare a function with no arguments.
+4:13:Use spam() rather than spam(void) to declare a function with no arguments.
 """