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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
0a363e25
Commit
0a363e25
authored
Oct 10, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend test
parent
e6f48d7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
tests/errors/pxd_signature_mismatch.pxd
tests/errors/pxd_signature_mismatch.pxd
+4
-0
tests/errors/pxd_signature_mismatch.pyx
tests/errors/pxd_signature_mismatch.pyx
+13
-5
No files found.
tests/errors/pxd_signature_mismatch.pxd
View file @
0a363e25
...
...
@@ -8,3 +8,7 @@ cdef int wrong_exception_check(int x, int y) except 0
cdef
int
wrong_exception_value
(
int
x
,
int
y
)
except
0
cdef
int
wrong_exception_value_check
(
int
x
,
int
y
)
except
0
cdef
int
inherit_exception_value
(
int
x
,
int
y
)
except
0
cdef
int
inherit_exception_check
(
int
x
,
int
y
)
except
*
tests/errors/pxd_signature_mismatch.pyx
View file @
0a363e25
...
...
@@ -2,19 +2,25 @@
# tag: pxd
cdef
int
wrong_args
(
int
x
,
int
y
):
return
0
return
2
cdef
int
wrong_return_type
(
int
x
,
int
y
):
return
0
return
2
cdef
int
wrong_exception_check
(
int
x
,
int
y
)
except
?
0
:
return
0
return
2
cdef
int
wrong_exception_value
(
int
x
,
int
y
)
except
1
:
return
0
return
2
cdef
int
wrong_exception_value_check
(
int
x
,
int
y
)
except
?
1
:
return
0
return
2
cdef
int
inherit_exception_value
(
int
x
,
int
y
):
return
2
cdef
int
inherit_exception_check
(
int
x
,
int
y
):
return
2
_ERRORS
=
"""
...
...
@@ -23,4 +29,6 @@ _ERRORS = """
10:5: Function signature does not match previous declaration
13:5: Function signature does not match previous declaration
16:5: Function signature does not match previous declaration
19:5: Function signature does not match previous declaration
22:5: Function signature does not match previous declaration
"""
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