Skip to content

Commit 66c0f2b

Browse files
committed
Scrap generating kwargs for promotion tests
1 parent 462e1a5 commit 66c0f2b

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

array_api_tests/test_type_promotion.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,15 @@ def test_result_type(dtypes):
6666

6767
@given(
6868
dtypes=multi_promotable_dtypes(allow_bool=False),
69-
kw=hh.kwargs(indexing=st.sampled_from(['xy', 'ij'])),
7069
data=st.data(),
7170
)
72-
def test_meshgrid(dtypes, kw, data):
71+
def test_meshgrid(dtypes, data):
7372
arrays = []
7473
shapes = data.draw(hh.mutually_broadcastable_shapes(len(dtypes)), label='shapes')
7574
for i, (dtype, shape) in enumerate(zip(dtypes, shapes), 1):
7675
x = data.draw(xps.arrays(dtype=dtype, shape=shape), label=f'x{i}')
7776
arrays.append(x)
78-
out = xp.meshgrid(*arrays, **kw)
77+
out = xp.meshgrid(*arrays)
7978
expected = dh.result_type(*dtypes)
8079
test_case = f'meshgrid({fmt_types(dtypes)})'
8180
for i, x in enumerate(out):
@@ -85,15 +84,14 @@ def test_meshgrid(dtypes, kw, data):
8584
@given(
8685
shape=hh.shapes(min_dims=1),
8786
dtypes=multi_promotable_dtypes(allow_bool=False),
88-
kw=hh.kwargs(axis=st.none() | st.just(0)),
8987
data=st.data(),
9088
)
91-
def test_concat(shape, dtypes, kw, data):
89+
def test_concat(shape, dtypes, data):
9290
arrays = []
9391
for i, dtype in enumerate(dtypes, 1):
9492
x = data.draw(xps.arrays(dtype=dtype, shape=shape), label=f'x{i}')
9593
arrays.append(x)
96-
out = xp.concat(arrays, **kw)
94+
out = xp.concat(arrays)
9795
assert_dtype(
9896
f'concat({fmt_types(dtypes)})', 'out.dtype', out.dtype, dh.result_type(*dtypes)
9997
)
@@ -102,15 +100,14 @@ def test_concat(shape, dtypes, kw, data):
102100
@given(
103101
shape=hh.shapes(),
104102
dtypes=multi_promotable_dtypes(),
105-
kw=hh.kwargs(axis=st.just(0)),
106103
data=st.data(),
107104
)
108-
def test_stack(shape, dtypes, kw, data):
105+
def test_stack(shape, dtypes, data):
109106
arrays = []
110107
for i, dtype in enumerate(dtypes, 1):
111108
x = data.draw(xps.arrays(dtype=dtype, shape=shape), label=f'x{i}')
112109
arrays.append(x)
113-
out = xp.stack(arrays, **kw)
110+
out = xp.stack(arrays)
114111
assert_dtype(
115112
f'stack({fmt_types(dtypes)})', 'out.dtype', out.dtype, dh.result_type(*dtypes)
116113
)

0 commit comments

Comments
 (0)