Skip to content

Commit 6c5368f

Browse files
committed
Use ndarrays for test_not_equal
1 parent 848b7b5 commit 6c5368f

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
@@ -780,9 +780,9 @@ def test_negative(x):
780780
ZERO = zero(x[mask].shape, x.dtype)
781781
assert_exactly_equal(y, ZERO)
782782

783-
@given(two_any_dtypes.flatmap(lambda i: two_array_scalars(*i)))
784-
def test_not_equal(args):
785-
x1, x2 = args
783+
@given(two_mutual_arrays())
784+
def test_not_equal(x1_and_x2):
785+
x1, x2 = x1_and_x2
786786
sanity_check(x1, x2)
787787
a = _array_module.not_equal(x1, x2)
788788

0 commit comments

Comments
 (0)