projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3011d66
)
fix testcases to silent GCC warning
author
Lisandro Dalcin
<dalcinl@gmail.com>
Tue, 9 Mar 2010 22:27:35 +0000
(19:27 -0300)
committer
Lisandro Dalcin
<dalcinl@gmail.com>
Tue, 9 Mar 2010 22:27:35 +0000
(19:27 -0300)
tests/errors/compile_time_unraisable_T370.pyx
patch
|
blob
|
history
tests/run/autotestdict.pyx
patch
|
blob
|
history
tests/run/bufaccess.pyx
patch
|
blob
|
history
tests/run/for_decrement.pyx
patch
|
blob
|
history
diff --git
a/tests/errors/compile_time_unraisable_T370.pyx
b/tests/errors/compile_time_unraisable_T370.pyx
index dba78802bd1b82c33ff9290db7c65f77e9b0b1b0..8434505632cb2f9c8f2886868c3f13562d2f0213 100644
(file)
--- a/
tests/errors/compile_time_unraisable_T370.pyx
+++ b/
tests/errors/compile_time_unraisable_T370.pyx
@@
-1,6
+1,7
@@
cdef int raiseit():
raise IndexError
+if False: raiseit()
_ERRORS = u"""
FIXME: provide a good error message here.
diff --git
a/tests/run/autotestdict.pyx
b/tests/run/autotestdict.pyx
index 506376b3d2b26967d60b40f8ea744ef612d4b761..c63e883fa36a8b44489b61ed05db10ecdf7d836b 100644
(file)
--- a/
tests/run/autotestdict.pyx
+++ b/
tests/run/autotestdict.pyx
@@
-30,6
+30,7
@@
cdef cdeffunc():
>>> True
False
"""
+cdeffunc()
def all_tests_run():
log.sort()
diff --git
a/tests/run/bufaccess.pyx
b/tests/run/bufaccess.pyx
index 24a74a977e0fd0dfd92b1268ce5bcb6698e1969d..b6cdc8d8944fc0763af532b10c82e673ec88b801 100644
(file)
--- a/
tests/run/bufaccess.pyx
+++ b/
tests/run/bufaccess.pyx
@@
-53,6
+53,8
@@
def printbuf():
"""
cdef object[int, ndim=2] buf
print buf
+ return
+ buf[0,0] = 0
@testcase
def acquire_release(o1, o2):
diff --git
a/tests/run/for_decrement.pyx
b/tests/run/for_decrement.pyx
index 17c6112b2e5ccb6a6f04104774594c618bfa2b3e..e5a086ca13ad43990f0707492326473399701c8c 100644
(file)
--- a/
tests/run/for_decrement.pyx
+++ b/
tests/run/for_decrement.pyx
@@
-19,7
+19,7
@@
def range_loop_indices():
Optimized integer for loops using range() should follow Python behavior,
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 j in range(2,10): pass
for k in range(0,10,get_step()): pass