summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2018-07-01 12:53:53 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2018-07-02 15:35:45 +0200
commit2b680c2311246f2d78f8b7786284336b92ef74a3 (patch)
tree41ef22ae116694afc2ff15dd0c63ede831209352 /numpy/lib/tests/test_function_base.py
parente33be77d664c3e18c4319c84d6a5b8e7448d132b (diff)
downloadnumpy-2b680c2311246f2d78f8b7786284336b92ef74a3.tar.gz
BUG: Advanced indexing assignment incorrectly took 1-D fastpath
When the index array was non contiguous and not 1D the assignment 1D fastpath (indexed array being 1D) was incorrectly taken (also the assignment value had to be 0D for this to happen). This caused the iteration to use the itemsize as a stride, since it incorrectly assumed the array must be contiguous. The commit additionally adds an assert to the STRIDE fetching macro. Closes gh-11467.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions