From 0e14b4b580c2f9a54c66ad492522e6d0c1598a21 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 30 Apr 2009 18:42:30 +0200 Subject: [PATCH] fix test --- tests/run/cdef_setitem_T284.pyx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/run/cdef_setitem_T284.pyx b/tests/run/cdef_setitem_T284.pyx index 81edbba4..2f042ae2 100644 --- a/tests/run/cdef_setitem_T284.pyx +++ b/tests/run/cdef_setitem_T284.pyx @@ -1,13 +1,16 @@ __doc__ = u''' >>> no_cdef() >>> with_cdef() + >>> test_list(range(11), -2, None) [0, 1, 2, 3, 4, 5, 6, 7, 8, None, 10] + >>> test_list(range(11), "invalid index", None) Traceback (most recent call last): ... -TypeError: list indices must be integers +TypeError: list indices must be integers, not str ''' + def no_cdef(): lst = range(11) ob = 10L -- 2.26.2