From ea87ad77b3930577356c5fda7b138bbc259efcd5 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 17 Jul 2010 16:21:03 +0200 Subject: [PATCH] test fix for Py<=2.5 --- tests/run/dict_getitem.pyx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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] -- 2.26.2