From: Stefan Behnel Date: Thu, 30 Apr 2009 16:42:30 +0000 (+0200) Subject: fix test X-Git-Tag: 0.12.alpha0~308 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e14b4b580c2f9a54c66ad492522e6d0c1598a21;p=cython.git fix test --- 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