From: Stefan Behnel Date: Sat, 17 Jul 2010 14:21:03 +0000 (+0200) Subject: test fix for Py<=2.5 X-Git-Tag: 0.13.beta0~14 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ea87ad77b3930577356c5fda7b138bbc259efcd5;p=cython.git test fix for Py<=2.5 --- diff --git a/tests/run/dict_getitem.pyx b/tests/run/dict_getitem.pyx index f40c31b8..9e0ecb70 100644 --- 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]