From 808ae2440a9873c351619ff7097d1ecb8f7090e3 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Mon, 17 Nov 2025 10:15:34 +0100 Subject: [PATCH] Align ERF tests with scipy 0.16.0 --- dpnp/tests/test_special.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpnp/tests/test_special.py b/dpnp/tests/test_special.py index 257ee3c5758b..44b2d38e6919 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