updated test case
authorStefan Behnel <scoder@users.berlios.de>
Sat, 25 Oct 2008 09:16:16 +0000 (11:16 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 25 Oct 2008 09:16:16 +0000 (11:16 +0200)
tests/run/dictintindex.pyx

index 2c4ac45f6d650a6db5cb514dd1a547fcc64e7c43..d9bec0e54c288b50e9414875f16e28055ca59f59 100644 (file)
@@ -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]