projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
234a6fd
)
updated test case
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 25 Oct 2008 09:16:16 +0000
(11:16 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 25 Oct 2008 09:16:16 +0000
(11:16 +0200)
tests/run/dictintindex.pyx
patch
|
blob
|
history
diff --git
a/tests/run/dictintindex.pyx
b/tests/run/dictintindex.pyx
index 2c4ac45f6d650a6db5cb514dd1a547fcc64e7c43..d9bec0e54c288b50e9414875f16e28055ca59f59 100644
(file)
--- a/
tests/run/dictintindex.pyx
+++ b/
tests/run/dictintindex.pyx
@@
-1,12
+1,18
@@
__doc__ = u"""
->>> test()
+>>> test
_index
()
1
+>>> test_del()
+Traceback (most recent call last):
+KeyError: 0
"""
-def test():
+def test
_index
():
cdef int key = 0
+ d = {0:1}
+ return d[key]
+def test_del():
+ cdef int key = 0
d = {0:1}
- print d[key]
del d[key]
-
print
d[key]
+
return
d[key]