summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2017-04-20 12:21:07 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2017-04-20 13:18:48 +0200
commit6b9e15f0ad50915ac9d0f2a37fe769ca0a41a447 (patch)
tree87ac4039d193d59bd42c50bfc7ed5acb2b47ef66 /numpy/lib/tests/test_function_base.py
parent3b2a7a761d5ceef3b9dcca3fff10380cb7a6f976 (diff)
downloadnumpy-6b9e15f0ad50915ac9d0f2a37fe769ca0a41a447.tar.gz
BUG: don't create array with invalid memory in where
When creating the tuple view of np.where, make sure the arrays point to valid memory when they are empty. Numpy assumes that even empty arrays have valid memory, e.g. in the source stride == 0 assignments. Closes gh-8922.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions