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
e20fb7f0
Commit
e20fb7f0
authored
Mar 09, 2010
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix testcases to silent GCC warning
parent
3011d66f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletion
+5
-1
tests/errors/compile_time_unraisable_T370.pyx
tests/errors/compile_time_unraisable_T370.pyx
+1
-0
tests/run/autotestdict.pyx
tests/run/autotestdict.pyx
+1
-0
tests/run/bufaccess.pyx
tests/run/bufaccess.pyx
+2
-0
tests/run/for_decrement.pyx
tests/run/for_decrement.pyx
+1
-1
No files found.
tests/errors/compile_time_unraisable_T370.pyx
View file @
e20fb7f0
cdef
int
raiseit
():
cdef
int
raiseit
():
raise
IndexError
raise
IndexError
if
False
:
raiseit
()
_ERRORS
=
u"""
_ERRORS
=
u"""
FIXME: provide a good error message here.
FIXME: provide a good error message here.
...
...
tests/run/autotestdict.pyx
View file @
e20fb7f0
...
@@ -30,6 +30,7 @@ cdef cdeffunc():
...
@@ -30,6 +30,7 @@ cdef cdeffunc():
>>> True
>>> True
False
False
"""
"""
cdef
func
()
def
all_tests_run
():
def
all_tests_run
():
log
.
sort
()
log
.
sort
()
...
...
tests/run/bufaccess.pyx
View file @
e20fb7f0
...
@@ -53,6 +53,8 @@ def printbuf():
...
@@ -53,6 +53,8 @@ def printbuf():
"""
"""
cdef
object
[
int
,
ndim
=
2
]
buf
cdef
object
[
int
,
ndim
=
2
]
buf
print
buf
print
buf
return
buf
[
0
,
0
]
=
0
@
testcase
@
testcase
def
acquire_release
(
o1
,
o2
):
def
acquire_release
(
o1
,
o2
):
...
...
tests/run/for_decrement.pyx
View file @
e20fb7f0
...
@@ -19,7 +19,7 @@ def range_loop_indices():
...
@@ -19,7 +19,7 @@ def range_loop_indices():
Optimized integer for loops using range() should follow Python behavior,
Optimized integer for loops using range() should follow Python behavior,
and leave the index variable with the last value of the range.
and leave the index variable with the last value of the range.
"""
"""
cdef
int
i
,
j
,
k
=
0
,
l
,
m
cdef
int
i
,
j
,
k
=
0
,
l
=
10
,
m
=
10
for
i
in
range
(
10
):
pass
for
i
in
range
(
10
):
pass
for
j
in
range
(
2
,
10
):
pass
for
j
in
range
(
2
,
10
):
pass
for
k
in
range
(
0
,
10
,
get_step
()):
pass
for
k
in
range
(
0
,
10
,
get_step
()):
pass
...
...
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