@@ -84,7 +84,7 @@ def test_empty(shape, dtype):
84
84
dtype = shared_dtypes ,
85
85
shape = xps .array_shapes (),
86
86
),
87
- dtype = one_of (none (), shared_dtypes . flatmap ( promotable_dtypes )),
87
+ dtype = one_of (none (), promotable_dtypes ( shared_dtypes )),
88
88
)
89
89
def test_empty_like (a , dtype ):
90
90
kwargs = {} if dtype is None else {'dtype' : dtype }
@@ -155,8 +155,8 @@ def test_full(shape, fill_value, dtype):
155
155
dtype = shared_dtypes ,
156
156
shape = xps .array_shapes (),
157
157
),
158
- fill_value = shared_dtypes . flatmap ( promotable_dtypes ).flatmap (xps .from_dtype ),
159
- dtype = one_of (none (), shared_dtypes . flatmap ( promotable_dtypes )),
158
+ fill_value = promotable_dtypes ( shared_dtypes ).flatmap (xps .from_dtype ),
159
+ dtype = one_of (none (), promotable_dtypes ( shared_dtypes )),
160
160
)
161
161
def test_full_like (a , fill_value , dtype ):
162
162
kwargs = {} if dtype is None else {'dtype' : dtype }
@@ -247,7 +247,7 @@ def test_ones(shape, dtype):
247
247
dtype = shared_dtypes ,
248
248
shape = xps .array_shapes (),
249
249
),
250
- dtype = one_of (none (), shared_dtypes . flatmap ( promotable_dtypes )),
250
+ dtype = one_of (none (), promotable_dtypes ( shared_dtypes )),
251
251
)
252
252
def test_ones_like (a , dtype ):
253
253
kwargs = {} if dtype is None else {'dtype' : dtype }
@@ -298,7 +298,7 @@ def test_zeros(shape, dtype):
298
298
dtype = shared_dtypes ,
299
299
shape = xps .array_shapes (),
300
300
),
301
- dtype = one_of (none (), shared_dtypes . flatmap ( promotable_dtypes )),
301
+ dtype = one_of (none (), promotable_dtypes ( shared_dtypes )),
302
302
)
303
303
def test_zeros_like (a , dtype ):
304
304
kwargs = {} if dtype is None else {'dtype' : dtype }
0 commit comments