Skip to content

Commit db075a1

Browse files
committed
Use ndarrays for test_pow
1 parent 917d9b8 commit db075a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

array_api_tests/test_elementwise_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -816,9 +816,9 @@ def test_positive(x):
816816
# Positive does nothing
817817
assert_exactly_equal(a, x)
818818

819-
@given(two_floating_dtypes.flatmap(lambda i: two_array_scalars(*i)))
820-
def test_pow(args):
821-
x1, x2 = args
819+
@given(two_mutual_arrays(floating_dtype_objects))
820+
def test_pow(x1_and_x2):
821+
x1, x2 = x1_and_x2
822822
sanity_check(x1, x2)
823823
_array_module.pow(x1, x2)
824824
# There isn't much we can test here. The spec doesn't require any behavior

0 commit comments

Comments
 (0)