summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests/test_set_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2022-11-09 15:19:48 +0100
committerSebastian Berg <sebastianb@nvidia.com>2022-11-09 15:31:25 +0100
commiteae88ff5f9cc3e3caea5e849600e0f8db52a67db (patch)
tree036ffa2ca60b510bb4c60c2fc28fb553e4eed653 /numpy/array_api/tests/test_set_functions.py
parent1aa73ca93afd2cd2cac3b564051f1153a2c05ee8 (diff)
downloadnumpy-eae88ff5f9cc3e3caea5e849600e0f8db52a67db.tar.gz
BUG: Fix use and errorchecking of ObjectType use
This should be replaced really, it is pretty bad API use, and doesn't work well (up to being incorrect probably). But working on other things (trying to make promotion strict and thus saner), I realized that the use was always wrong: we cannot pass 0 since 0 means `bool`, what was always meant was passing no-type. So fixing this, and adding the error check everywhere. Checking for `PyErr_Occurred()` may have been necessary at some point, but is not anymore.
Diffstat (limited to 'numpy/array_api/tests/test_set_functions.py')
0 files changed, 0 insertions, 0 deletions