Skip to content

Commit e8df1f7

Browse files
authored
Merge branch 'master' into bot/pre-commit-autoupdate
2 parents 4867905 + a408c2a commit e8df1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpnp/tests/test_special.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_basic(self, func, dt):
2929
expected = getattr(scipy.special, func)(a)
3030

3131
# scipy >= 0.16.0 returns float64, but dpnp returns float32
32-
to_float32 = dt in (dpnp.bool, dpnp.float16)
32+
to_float32 = dpnp.result_type(dt, dpnp.float32) == dpnp.float32
3333
only_type_kind = installed("scipy>=0.16.0") and to_float32
3434
assert_dtype_allclose(
3535
result, expected, check_only_type_kind=only_type_kind

0 commit comments

Comments
 (0)