>>> 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)
>>> 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:
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