Lines Matching refs:str
37 assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)'
40 assert str(excinfo.value) == 'invalid axis: 0 (ndim = 0)'
58 assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)'
61 assert str(excinfo.value) == 'invalid axis: 2 (ndim = 2)'
82 assert str(excinfo.value) == 'too many indices for an array: 3 (ndim = 2)'
102 assert str(excinfo.value) == 'index dimension mismatch: {} (ndim = 2)'.format(dim)
118 assert str(excinfo.value) == 'array is not writeable'
140 assert str(excinfo.value) == 'index 2 is out of bounds for axis 0 with size 2'
143 assert str(excinfo.value) == 'index 4 is out of bounds for axis 1 with size 3'
289 1. (arg0: numpy.ndarray[float64]) -> str
290 2. (arg0: numpy.ndarray[float32]) -> str
291 3. (arg0: numpy.ndarray[int32]) -> str
292 4. (arg0: numpy.ndarray[uint16]) -> str
293 5. (arg0: numpy.ndarray[int64]) -> str
294 6. (arg0: numpy.ndarray[complex128]) -> str
295 7. (arg0: numpy.ndarray[complex64]) -> str
310 1. (arg0: numpy.ndarray[int32]) -> str
311 2. (arg0: numpy.ndarray[float64]) -> str
383 assert str(excinfo.value) == 'cannot create a pybind11::array from a nullptr'
387 assert str(excinfo.value) == 'cannot create a pybind11::array_t from a nullptr'
391 assert str(excinfo.value) == 'negative dimensions are not allowed'
414 assert(str(e).startswith("cannot resize an array"))
420 assert(str(e).startswith("cannot resize this array: it does not own its data"))