From: Dag Sverre Seljebotn Date: Wed, 6 May 2009 19:03:59 +0000 (+0200) Subject: Minor testcase fixes X-Git-Tag: 0.11.2.rc1~10^2~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4c78f46420a80ef173cef91098e0e8a7185d5bf4;p=cython.git Minor testcase fixes --- 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