Skip to content

Commit 93572ff

Browse files
committed
Update math tests
1 parent be62027 commit 93572ff

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

dpnp/tests/third_party/cupy/math_tests/test_special.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import unittest
22

3-
import pytest
4-
53
import dpnp as cupy
64
from dpnp.tests.third_party.cupy import testing
75

@@ -14,16 +12,10 @@ def test_i0(self, xp, dtype):
1412
a = testing.shaped_random((2, 3), xp, dtype)
1513
return xp.i0(a)
1614

15+
@testing.with_requires("numpy>=2.0")
1716
@testing.for_dtypes(["e", "f", "d", "F", "D"])
1817
@testing.numpy_cupy_allclose(atol=1e-3)
1918
def test_sinc(self, xp, dtype):
20-
21-
if dtype in [cupy.float16, cupy.float32, cupy.complex64]:
22-
pytest.xfail(
23-
reason="XXX: np2.0: numpy 1.26 uses a wrong "
24-
"promotion; numpy 2.0 is OK"
25-
)
26-
2719
a = testing.shaped_random((2, 3), xp, dtype, scale=1)
2820
return xp.sinc(a)
2921

0 commit comments

Comments
 (0)