Commit 4c78f464 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Minor testcase fixes

parent 012f1937
......@@ -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)
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment