summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_array_object.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2022-05-29 10:46:17 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2022-05-29 10:48:20 -0700
commit2fc8335881fac4652fd4850867ae4932f0cfdf98 (patch)
tree13bdb4b04bbb9f254bc906576692bdc9519c4f8e /numpy/array_api/tests/test_array_object.py
parent68f3a12f4cc9310a7d60f9878af72cf98e7233f3 (diff)
downloadnumpy-2fc8335881fac4652fd4850867ae4932f0cfdf98.tar.gz
API: Retain `arr.base` more strictly in `np.frombuffer`
Checking the implementation of `releasebuffer` is the most strict version for when we can safely assume that wrapping into a `memoryview` is not necessary. In theory, `view.obj` could also be set to a new object even with the old buffer-protocol, in practice I don't think that should happen (the docs read like it should not be used). So this is the minimal fix to retain old behavior as much as (safely) possible. Closes gh-21612
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions