diff options
author | tirthasheshpatel <tirthasheshpatel@gmail.com> | 2019-12-03 17:49:40 +0530 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2020-01-17 08:00:51 -0600 |
commit | 7ef6b65fa960fcedcef8a27b1c3ef8c67ebb2078 (patch) | |
tree | 6954965f8d0c8f93d69e86e83d647f81510f5eb5 /numpy/array_api/tests/test_array_object.py | |
parent | 190ac3e99015ddded029d8811829da1b48b69b97 (diff) | |
download | numpy-7ef6b65fa960fcedcef8a27b1c3ef8c67ebb2078.tar.gz |
BUG: `np.resize` negative shape and subclasses edge case fixes
When a negative entry is passed into `np.resize` shape, an error will
now be raised reliably. Previously the `-1` semantics of reshape allowed
edge cases to pass and return incorrect results.
In the corner case of an empty result shape or empty input shape, the
result type will now be preserved.
Diffstat (limited to 'numpy/array_api/tests/test_array_object.py')
0 files changed, 0 insertions, 0 deletions