projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6837211
)
test fix for Py<=2.5
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 17 Jul 2010 14:21:03 +0000
(16:21 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 17 Jul 2010 14:21:03 +0000
(16:21 +0200)
tests/run/dict_getitem.pyx
patch
|
blob
|
history
diff --git
a/tests/run/dict_getitem.pyx
b/tests/run/dict_getitem.pyx
index f40c31b8e2bead0234de8d4992be5e4b0a172641..9e0ecb7023ad7646a17ea2653b1e0bb45bdf429d 100644
(file)
--- a/
tests/run/dict_getitem.pyx
+++ b/
tests/run/dict_getitem.pyx
@@
-6,12
+6,10
@@
def test(dict d, index):
>>> test(d, 2)
Traceback (most recent call last):
- ...
KeyError: 2
>>> test(d, (1,2))
Traceback (most recent call last):
- ...
KeyError: (1, 2)
>>> class Unhashable:
@@
-19,13
+17,11
@@
def test(dict d, index):
... raise ValueError
>>> test(d, Unhashable())
Traceback (most recent call last):
- ...
ValueError
>>> test(None, 1) # doctest: +ELLIPSIS
Traceback (most recent call last):
- ...
- TypeError: 'NoneType' object is ...
+ TypeError: ...subscriptable...
"""
return d[index]