diff options
author | Alexandre de Siqueira <alex.desiqueira@igdore.org> | 2022-02-16 08:46:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-16 10:46:02 -0600 |
commit | 935fe83ddaa3250d176bc848579ffdc4e1017090 (patch) | |
tree | 75a5b0ec027cfcd6633e4cf6d9de801357a8d96a /numpy/array_api/tests/test_array_object.py | |
parent | f80aba83de3027a08597b13107e549f401a2ec40 (diff) | |
download | numpy-935fe83ddaa3250d176bc848579ffdc4e1017090.tar.gz |
BUG: Fix unpickling an empty ndarray with a none-zero dimension (#21067)
Changing num to the number of bytes in the input array, PyArray_NBYTES(self). Solves #21009.
* Fixing nbyte size in methods.c:memcpy
* Adding a test
* Re-adding removed newline
* Shrinking the test array to save memory
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions