Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
e199017f
Commit
e199017f
authored
Oct 26, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use unicode strings for compiler error tests (just for consistency)
parent
006262f0
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
11 deletions
+11
-11
tests/errors/cdefoptargs.pyx
tests/errors/cdefoptargs.pyx
+1
-1
tests/errors/e_pxdimpl.pyx
tests/errors/e_pxdimpl.pyx
+2
-2
tests/errors/e_strcoerce.pyx
tests/errors/e_strcoerce.pyx
+1
-1
tests/errors/e_switch.pyx
tests/errors/e_switch.pyx
+1
-1
tests/errors/encoding.pyx
tests/errors/encoding.pyx
+1
-1
tests/errors/futurebraces.pyx
tests/errors/futurebraces.pyx
+1
-1
tests/errors/invalid_cast.pyx
tests/errors/invalid_cast.pyx
+2
-2
tests/errors/undefinedname.pyx
tests/errors/undefinedname.pyx
+1
-1
tests/errors/void_as_arg.pyx
tests/errors/void_as_arg.pyx
+1
-1
No files found.
tests/errors/cdefoptargs.pyx
View file @
e199017f
...
...
@@ -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)
"""
tests/errors/e_pxdimpl.pyx
View file @
e199017f
cimport
e_pxdimpl_imported
_ERRORS
=
"""
_ERRORS
=
u
"""
6:4: function definition not allowed here
18:4: function definition not allowed here
23:8: function definition not allowed here
...
...
tests/errors/e_strcoerce.pyx
View file @
e199017f
...
...
@@ -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.
"""
tests/errors/e_switch.pyx
View file @
e199017f
...
...
@@ -7,6 +7,6 @@ elif x == 2:
elif
x
==
4
:
print
34
_ERRORS
=
"""
_ERRORS
=
u
"""
3:19: undeclared name not builtin: NONEXISTING
"""
tests/errors/encoding.pyx
View file @
e199017f
...
...
@@ -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))
"""
tests/errors/futurebraces.pyx
View file @
e199017f
from
__future__
import
braces
_ERRORS
=
"""
_ERRORS
=
u
"""
1:23: not a chance
"""
tests/errors/invalid_cast.pyx
View file @
e199017f
def
f
():
a
=
<
foao
>
True
_ERRORS
=
"""
_ERRORS
=
u
"""
2:9: 'foao' is not a type identifier
"""
tests/errors/undefinedname.pyx
View file @
e199017f
...
...
@@ -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_
"""
tests/errors/void_as_arg.pyx
View file @
e199017f
cdef
extern
from
*
:
void
foo
(
void
)
_ERRORS
=
"""
_ERRORS
=
u
"""
2:13:Use spam() rather than spam(void) to declare a function with no arguments.
"""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment