summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-08-11 16:01:48 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-10-30 22:36:24 -0700
commitf2d8aabaf99bc2c460968d64aec67ae2570726bd (patch)
tree59ca29177191ff6be96eaa1469a3ee2c6da68cce /numpy/lib/tests/test_function_base.py
parent7a0950649db5b83a881d8fb2bf8f95fdd885e081 (diff)
downloadnumpy-f2d8aabaf99bc2c460968d64aec67ae2570726bd.tar.gz
BUG: Make `arr.ctypes.data` hold onto a reference to the underlying array
We do this by going through ctypes.from_buffer, which keeps the object the buffer came from alive. A bunch of hacks are required to produce a sufficiently simple buffer for ctypes to accept. Fixes #9647
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions