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
c0680488
Commit
c0680488
authored
Apr 16, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify test for T158 as warnings, not errors, are raised.
parent
d62c5b0b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
tests/compile/cpp_exceptions.h
tests/compile/cpp_exceptions.h
+3
-0
tests/compile/cpp_exceptions_T265.pyx
tests/compile/cpp_exceptions_T265.pyx
+1
-1
tests/errors/declareafteruse_T158.pyx
tests/errors/declareafteruse_T158.pyx
+11
-2
No files found.
tests/compile/cpp_exceptions.h
0 → 100644
View file @
c0680488
extern
int
generic_error
(
void
);
extern
int
specified_error
(
void
);
extern
int
dynamic_error
(
void
);
tests/compile/cpp_exceptions_T265.pyx
View file @
c0680488
cdef
void
raise_py_error
():
cdef
void
raise_py_error
():
pass
pass
cdef
extern
from
"
foo
.h"
:
cdef
extern
from
"
cpp_exceptions
.h"
:
cdef
int
generic_error
()
except
+
cdef
int
generic_error
()
except
+
cdef
int
specified_error
()
except
+
MemoryError
cdef
int
specified_error
()
except
+
MemoryError
cdef
int
dynamic_error
()
except
+
raise_py_error
cdef
int
dynamic_error
()
except
+
raise_py_error
...
...
tests/errors/declareafteruse_T158.pyx
View file @
c0680488
...
@@ -49,8 +49,8 @@ cdef int *baz
...
@@ -49,8 +49,8 @@ cdef int *baz
print
var
[
0
][
0
]
print
var
[
0
][
0
]
cdef
unsigned
long
long
var
[
100
][
100
]
cdef
unsigned
long
long
var
[
100
][
100
]
# in 0.11.1 these are warnings
_ERRORS
=
u"""
FUTURE
_ERRORS
=
u"""
4:13: cdef variable 's' declared after it is used
4:13: cdef variable 's' declared after it is used
4:16: cdef variable 'vv' 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
9:14: cdef variable 'i' declared after it is used
...
@@ -63,3 +63,12 @@ _ERRORS = u"""
...
@@ -63,3 +63,12 @@ _ERRORS = u"""
47:10: cdef variable 'baz' 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
50: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
"""
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