From 4c78f46420a80ef173cef91098e0e8a7185d5bf4 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Wed, 6 May 2009 21:03:59 +0200 Subject: [PATCH] Minor testcase fixes --- tests/run/cdef_setitem_T284.pyx | 2 +- tests/run/numpy_test.pyx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/run/cdef_setitem_T284.pyx b/tests/run/cdef_setitem_T284.pyx index a93fbac1..81edbba4 100644 --- a/tests/run/cdef_setitem_T284.pyx +++ b/tests/run/cdef_setitem_T284.pyx @@ -6,7 +6,7 @@ __doc__ = u''' >>> test_list(range(11), "invalid index", None) Traceback (most recent call last): ... -TypeError: list indices must be integers, not str +TypeError: list indices must be integers ''' def no_cdef(): lst = range(11) diff --git a/tests/run/numpy_test.pyx b/tests/run/numpy_test.pyx index 17a1f28c..f9bb1fe1 100644 --- a/tests/run/numpy_test.pyx +++ b/tests/run/numpy_test.pyx @@ -190,7 +190,7 @@ try: >>> test_bad_cast() Traceback (most recent call last): ... - ValueError: Item size of buffer (1 byte) does not match size of 'long' (8 bytes) + ValueError: Item size of buffer (1 byte) does not match size of 'int' (4 bytes) """ except: @@ -350,7 +350,7 @@ def test_good_cast(): def test_bad_cast(): # This should raise an exception - cdef np.ndarray[long, cast=True] arr = np.array([1], dtype=b'b') + cdef np.ndarray[int, cast=True] arr = np.array([1], dtype=b'b') cdef packed struct PackedStruct: char a -- 2.26.2