diff --git a/dpnp/tests/test_special.py b/dpnp/tests/test_special.py index 257ee3c5758..44b2d38e691 100644 --- a/dpnp/tests/test_special.py +++ b/dpnp/tests/test_special.py @@ -29,7 +29,7 @@ def test_basic(self, func, dt): expected = getattr(scipy.special, func)(a) # scipy >= 0.16.0 returns float64, but dpnp returns float32 - to_float32 = dt in (dpnp.bool, dpnp.float16) + to_float32 = dpnp.result_type(dt, dpnp.float32) == dpnp.float32 only_type_kind = installed("scipy>=0.16.0") and to_float32 assert_dtype_allclose( result, expected, check_only_type_kind=only_type_kind