We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4867905 + a408c2a commit e8df1f7Copy full SHA for e8df1f7
dpnp/tests/test_special.py
@@ -29,7 +29,7 @@ def test_basic(self, func, dt):
29
expected = getattr(scipy.special, func)(a)
30
31
# scipy >= 0.16.0 returns float64, but dpnp returns float32
32
- to_float32 = dt in (dpnp.bool, dpnp.float16)
+ to_float32 = dpnp.result_type(dt, dpnp.float32) == dpnp.float32
33
only_type_kind = installed("scipy>=0.16.0") and to_float32
34
assert_dtype_allclose(
35
result, expected, check_only_type_kind=only_type_kind
0 commit comments