test_numpy_array.py
9.31 KB
-
Change array's writeable exception to a ValueError · fd751703
Numpy raises ValueError when attempting to modify an array, while py::array is raising a RuntimeError. This changes the exception to a std::domain_error, which gets mapped to the expected ValueError in python.
Jason Rhinelander committed