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():
cdef b(a, b, c=1, d=2):
pass
_ERRORS = """
_ERRORS = u"""
2:5:Call with wrong number of arguments (expected at most 4, got 5)
"""
cimport e_pxdimpl_imported
_ERRORS = """
6:4: function definition not allowed here
_ERRORS = u"""
6:4: function definition not allowed here
18:4: function definition not allowed here
23:8: function definition not allowed here
"""
......@@ -2,7 +2,7 @@ cdef int c1 = "t" # works
cdef int c2 = "te" # fails
cdef int cx = "test" # fails
_ERRORS = """
_ERRORS = u"""
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.
"""
......@@ -7,6 +7,6 @@ elif x == 2:
elif x == 4:
print 34
_ERRORS = """
_ERRORS = u"""
3:19: undeclared name not builtin: NONEXISTING
"""
......@@ -4,6 +4,6 @@
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))
"""
from __future__ import braces
_ERRORS = """
_ERRORS = u"""
1:23: not a chance
"""
def f():
a = <foao>True
_ERRORS = """
_ERRORS = u"""
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_
def test(i):
return _this_local_name_does_not_exist_
_ERRORS = """
_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_
"""
cdef extern from *:
void foo(void)
_ERRORS = """
_ERRORS = u"""
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