diff options
author | Gerrit Holl <g.holl@reading.ac.uk> | 2016-02-16 15:36:10 +0000 |
---|---|---|
committer | Gerrit Holl <g.holl@reading.ac.uk> | 2016-02-22 16:40:09 +0000 |
commit | 576b48f00f0fe2a97a7b4dfde2a707d39e8ac099 (patch) | |
tree | d50bf2dd39989ae69cb8a7e888f163cae52ed05c /numpy/lib/tests/test_function_base.py | |
parent | 0de123452d6c25a8708ba1e3d921ab7dbd772516 (diff) | |
download | numpy-576b48f00f0fe2a97a7b4dfde2a707d39e8ac099.tar.gz |
BUG/TST: Fix #7259, do not "force scalar" for already scalar str/bytes
Fix for #7259. Since commit f8f753b, fill_value was forced scalar by
indexing with [()]. This works for most numpy scalars, but not for U
(str) and S (bytes). This commit falls back to the pre-f8f753b version
when forcing to scalar fails for fill_value of dtypes with kind U and S.
Also add a test to see that this works in practice.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions