make type promotion work properly
@@ -454,18 +454,18 @@ class TestMisc:
@testing.for_all_dtypes(name='dtype_2', no_bool=True, no_complex=True)
@testing.for_all_dtypes(name='dtype_1', no_bool=True, no_complex=True)
- @testing.numpy_cupy_array_equal(type_check=False)
+ @testing.numpy_cupy_array_equal()
def test_heaviside(self, xp, dtype_1, dtype_2):
x = testing.shaped_random((10, ), xp, dtype_1)
- h = xp.asarray(10, dtype=dtype_2)
+ h = xp.asarray([10], dtype=dtype_2)
return xp.heaviside(x, h)
@testing.for_all_dtypes(name='dtype_2', no_bool=True, no_complex=True)
@testing.for_float_dtypes(name='dtype_1')
- @testing.numpy_cupy_array_equal(type_check=False)
+ @testing.numpy_cupy_array_equal()
def test_heaviside_nan_inf(self, xp, dtype_1, dtype_2):
x = xp.asarray([-2., 0., 3., xp.nan, xp.inf, -xp.inf], dtype=dtype_1)
- h = xp.asarray(10., dtype=dtype_2)
+ h = xp.asarray([10], dtype=dtype_2)
return xp.heaviside(x, h)
