Use for_all_dtypes_combination
@@ -87,8 +87,7 @@ class TestArrayCopyAndView(unittest.TestCase):
return b
@testing.for_orders(['C', 'F', 'A', 'K', None])
- @testing.for_all_dtypes(name='src_dtype')
- @testing.for_all_dtypes(name='dst_dtype')
+ @testing.for_all_dtypes_combination(('src_dtype', 'dst_dtype'))
@testing.numpy_cupy_array_equal()
def test_astype(self, xp, src_dtype, dst_dtype, order):
a = testing.shaped_arange((2, 3, 4), xp, src_dtype)
