Skip to content

Commit db2f231

Browse files
committed
Allow two_mutual_arrays to accept a shapes strategy
1 parent fe4ddbf commit db2f231

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

array_api_tests/hypothesis_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,10 @@ def multiaxis_indices(draw, shapes):
291291
return tuple(res)
292292

293293

294-
def two_mutual_arrays(dtype_objects=dtype_objects):
294+
def two_mutual_arrays(dtype_objects=dtype_objects,
295+
two_shapes=two_mutually_broadcastable_shapes):
295296
mutual_dtypes = shared(mutually_promotable_dtypes(dtype_objects))
296-
mutual_shapes = shared(two_mutually_broadcastable_shapes)
297+
mutual_shapes = shared(two_shapes)
297298
arrays1 = xps.arrays(
298299
dtype=mutual_dtypes.map(lambda pair: pair[0]),
299300
shape=mutual_shapes.map(lambda pair: pair[0]),
@@ -304,7 +305,6 @@ def two_mutual_arrays(dtype_objects=dtype_objects):
304305
)
305306
return arrays1, arrays2
306307

307-
308308
@composite
309309
def kwargs(draw, **kw):
310310
"""

0 commit comments

Comments
 (0)