• Home
  • Raw
  • Download

Lines Matching refs:excinfo

39     with pytest.raises(IndexError) as excinfo:
41 assert str(excinfo.value) == "invalid axis: 0 (ndim = 0)"
42 with pytest.raises(IndexError) as excinfo:
44 assert str(excinfo.value) == "invalid axis: 0 (ndim = 0)"
60 with pytest.raises(IndexError) as excinfo:
62 assert str(excinfo.value) == "invalid axis: 2 (ndim = 2)"
63 with pytest.raises(IndexError) as excinfo:
65 assert str(excinfo.value) == "invalid axis: 2 (ndim = 2)"
94 with pytest.raises(IndexError) as excinfo:
96 assert str(excinfo.value) == "too many indices for an array: 3 (ndim = 2)"
119 with pytest.raises(IndexError) as excinfo:
121 assert str(excinfo.value) == "index dimension mismatch: {} (ndim = 2)".format(
141 with pytest.raises(ValueError) as excinfo:
143 assert str(excinfo.value) == "array is not writeable"
171 with pytest.raises(IndexError) as excinfo:
173 assert str(excinfo.value) == "index 2 is out of bounds for axis 0 with size 2"
174 with pytest.raises(IndexError) as excinfo:
176 assert str(excinfo.value) == "index 4 is out of bounds for axis 1 with size 3"
324 with pytest.raises(TypeError) as excinfo:
327 msg(excinfo.value)
357 with pytest.raises(TypeError) as excinfo:
359 assert msg(excinfo.value) == expected_exc + repr(np.array([1], dtype="uint32"))
360 with pytest.raises(TypeError) as excinfo:
362 assert msg(excinfo.value) == expected_exc + repr(np.array([1.0], dtype="float32"))
363 with pytest.raises(TypeError) as excinfo:
365 assert msg(excinfo.value) == expected_exc + repr(np.array([1.0 + 0.0j]))
394 with pytest.raises(ValueError) as excinfo:
397 msg(excinfo.value) == "array has incorrect number of dimensions: 1; expected 2"
428 with pytest.raises(ValueError) as excinfo:
430 assert str(excinfo.value) == "cannot create a pybind11::array from a nullptr"
432 with pytest.raises(ValueError) as excinfo:
434 assert str(excinfo.value) == "cannot create a pybind11::array_t from a nullptr"
436 with pytest.raises(ValueError) as excinfo:
438 assert str(excinfo.value) == "negative dimensions are not allowed"