Commit e199017f authored by Stefan Behnel's avatar Stefan Behnel

use unicode strings for compiler error tests (just for consistency)

parent 006262f0
...@@ -4,6 +4,6 @@ def call5(): ...@@ -4,6 +4,6 @@ def call5():
cdef b(a, b, c=1, d=2): cdef b(a, b, c=1, d=2):
pass pass
_ERRORS = """ _ERRORS = u"""
2:5:Call with wrong number of arguments (expected at most 4, got 5) 2:5:Call with wrong number of arguments (expected at most 4, got 5)
""" """
cimport e_pxdimpl_imported cimport e_pxdimpl_imported
_ERRORS = """ _ERRORS = u"""
6:4: function definition not allowed here 6:4: function definition not allowed here
18:4: function definition not allowed here 18:4: function definition not allowed here
23:8: function definition not allowed here 23:8: function definition not allowed here
""" """
...@@ -2,7 +2,7 @@ cdef int c1 = "t" # works ...@@ -2,7 +2,7 @@ cdef int c1 = "t" # works
cdef int c2 = "te" # fails cdef int c2 = "te" # fails
cdef int cx = "test" # fails cdef int cx = "test" # fails
_ERRORS = """ _ERRORS = u"""
2:14: Only coerce single-character ascii strings can be used as ints. 2:14: Only coerce single-character ascii strings can be used as ints.
3:14: Only coerce single-character ascii strings can be used as ints. 3:14: Only coerce single-character ascii strings can be used as ints.
""" """
...@@ -7,6 +7,6 @@ elif x == 2: ...@@ -7,6 +7,6 @@ elif x == 2:
elif x == 4: elif x == 4:
print 34 print 34
_ERRORS = """ _ERRORS = u"""
3:19: undeclared name not builtin: NONEXISTING 3:19: undeclared name not builtin: NONEXISTING
""" """
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
Trs bien. Trs bien.
""" """
_ERRORS = """ _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 22: ordinal not in range(128))
""" """
from __future__ import braces from __future__ import braces
_ERRORS = """ _ERRORS = u"""
1:23: not a chance 1:23: not a chance
""" """
def f(): def f():
a = <foao>True a = <foao>True
_ERRORS = """ _ERRORS = u"""
2:9: 'foao' is not a type identifier 2:9: 'foao' is not a type identifier
""" """
\ No newline at end of file
...@@ -3,7 +3,7 @@ i = _this_global_name_does_not_exist_ ...@@ -3,7 +3,7 @@ i = _this_global_name_does_not_exist_
def test(i): def test(i):
return _this_local_name_does_not_exist_ return _this_local_name_does_not_exist_
_ERRORS = """ _ERRORS = u"""
1:37:undeclared name not builtin: _this_global_name_does_not_exist_ 1:37:undeclared name not builtin: _this_global_name_does_not_exist_
4:43:undeclared name not builtin: _this_local_name_does_not_exist_ 4:43:undeclared name not builtin: _this_local_name_does_not_exist_
""" """
cdef extern from *: cdef extern from *:
void foo(void) void foo(void)
_ERRORS = """ _ERRORS = u"""
2:13:Use spam() rather than spam(void) to declare a function with no arguments. 2:13:Use spam() rather than spam(void) to declare a function with no arguments.
""" """
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