summaryrefslogtreecommitdiff
path: root/numpy/array_api/tests
diff options
context:
space:
mode:
authorMatthew <quitesimplymatt@gmail.com>2022-01-07 11:53:09 +0000
committerMatthew <quitesimplymatt@gmail.com>2022-01-07 12:27:33 +0000
commite3406ed3ef83f7de0f3419361e85bd8634d0fd2b (patch)
treef3817044a033b0fcbc84273161af9aff26c8d5e5 /numpy/array_api/tests
parentf4a3e07877eb258f69a7d65d8a3b7e8d96e1aacd (diff)
downloadnumpy-e3406ed3ef83f7de0f3419361e85bd8634d0fd2b.tar.gz
BUG: Allow integer inputs for pow-related functions in `array_api`
Updates `xp.power()`, `x.__pow__()`, `x.__ipow()__` and `x.__rpow()__`
Diffstat (limited to 'numpy/array_api/tests')
-rw-r--r--numpy/array_api/tests/test_array_object.py2
-rw-r--r--numpy/array_api/tests/test_elementwise_functions.py2
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",