summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2019-04-14 12:18:12 -0700
committerEric Wieser <wieser.eric@gmail.com>2019-04-14 13:00:03 -0700
commitb24060e5787b5fff80f855fa105e91d989e1ca6c (patch)
tree1362cb21d8222a56866f3c24fdb520f1a0698a9a /numpy/lib/tests/test_function_base.py
parentfb425b769bbe4ff4b5a28f58876871414cc8bb12 (diff)
downloadnumpy-b24060e5787b5fff80f855fa105e91d989e1ca6c.tar.gz
MAINT: Tidy up error message for accumulate and reduceat
This makes `np.add.accumulate(0, axis=())` match `np.add.accumulate(0)` - both now give `TypeError: cannot accumulate on a scalar`. This also fixes an LGTM complaing about `naxes == 1` being always false due to the line before it that sets `naxes = 0`.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions