test_numpy_array.py
14.4 KB
-
array: set exception message on failure · 5749b502
When attempting to get a raw array pointer we return nullptr if given a nullptr, which triggers an error_already_set(), but we haven't set an exception message, which results in "Unknown internal error". Callers that want explicit allowing of a nullptr here already handle it (by clearing the exception after the call).
Jason Rhinelander committed