diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2022-01-12 13:12:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-12 13:12:54 -0700 |
commit | f98c60a035b007680fe811eeed3b6326961ccff5 (patch) | |
tree | 73556ad843b2ac6670bb2840d8eb4982c70d171e /numpy/array_api/tests | |
parent | f637d75eb6cbcc90ceadee3e62e6b62fd0e53976 (diff) | |
parent | e3406ed3ef83f7de0f3419361e85bd8634d0fd2b (diff) | |
download | numpy-f98c60a035b007680fe811eeed3b6326961ccff5.tar.gz |
Merge pull request #20762 from honno/xp-pow-fixes
BUG: Allow integer inputs for pow-related functions in `array_api`
Diffstat (limited to 'numpy/array_api/tests')
-rw-r--r-- | numpy/array_api/tests/test_array_object.py | 2 | ||||
-rw-r--r-- | numpy/array_api/tests/test_elementwise_functions.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/numpy/array_api/tests/test_array_object.py b/numpy/array_api/tests/test_array_object.py index b980bacca..1fe1dfddf 100644 --- a/numpy/array_api/tests/test_array_object.py +++ b/numpy/array_api/tests/test_array_object.py @@ -98,7 +98,7 @@ def test_operators(): "__mul__": "numeric", "__ne__": "all", "__or__": "integer_or_boolean", - "__pow__": "floating", + "__pow__": "numeric", "__rshift__": "integer", "__sub__": "numeric", "__truediv__": "floating", diff --git a/numpy/array_api/tests/test_elementwise_functions.py b/numpy/array_api/tests/test_elementwise_functions.py index a9274aec9..b2fb44e76 100644 --- a/numpy/array_api/tests/test_elementwise_functions.py +++ b/numpy/array_api/tests/test_elementwise_functions.py @@ -66,7 +66,7 @@ def test_function_types(): "negative": "numeric", "not_equal": "all", "positive": "numeric", - "pow": "floating-point", + "pow": "numeric", "remainder": "numeric", "round": "numeric", "sign": "numeric", |