diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-12-15 18:18:44 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-12-15 18:26:40 -0600 |
commit | 4d16baca2494718e16016375b04e82cfe8de1b81 (patch) | |
tree | 3862df94a247bf33904e4e569fef5bf4c9f8ebff /numpy/array_api/tests/test_set_functions.py | |
parent | 06e37a3e6e48f06a3ff4010b4ad88e4b001184fb (diff) | |
download | numpy-4d16baca2494718e16016375b04e82cfe8de1b81.tar.gz |
BUG: Fix setstate logic for empty arrays
Also cleans up the clearing of the mem_handler slightly. Lets try
to make sure it is always NULL when OWNDATA is not set (and an error
is given), just so there can't be any accidental double-frees.
Obviously, this function has more problems then the ones fixed here...
This introduces the NBYTES_ALLOCATED helper basically just for these
two places to fix the UHOH prints also...
Diffstat (limited to 'numpy/array_api/tests/test_set_functions.py')
0 files changed, 0 insertions, 0 deletions