Skip to content

Commit a408c2a

Browse files
authored
Align erf-like tests with scipy>=0.16.0 (#2669)
The PR updates a test for erf functions to consider setting `DPNP_TEST_ALL_INT_TYPES=1` during the tests run with the latest SciPy installed in the test env.
1 parent 8567fda commit a408c2a

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)