Skip to content

Commit 56f7f6e

Browse files
committed
Resolve tests failures with elementwise functions towards numpy 2.0
1 parent bea5156 commit 56f7f6e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dpnp/tests/test_mathematical.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1992,6 +1992,7 @@ def test_discont(self, dt):
19921992
assert result.dtype == ia.dtype == a.dtype
19931993

19941994

1995+
@testing.with_requires("numpy>=2.1.0")
19951996
@pytest.mark.usefixtures("suppress_divide_invalid_numpy_warnings")
19961997
@pytest.mark.parametrize("val_type", [bool, int, float])
19971998
@pytest.mark.parametrize("dtype", get_all_dtypes(no_none=True))

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ def check_binary(self, xp):
367367
return y
368368

369369

370+
@testing.with_requires("numpy>=2.1.0")
370371
@testing.parameterize(
371372
*(
372373
testing.product(
@@ -409,6 +410,7 @@ def test_binary(self):
409410
self.check_binary()
410411

411412

413+
@testing.with_requires("numpy>=2.1.0")
412414
@testing.parameterize(
413415
*(
414416
testing.product(
@@ -487,7 +489,7 @@ def test_binary(self):
487489
self.check_binary()
488490

489491

490-
@testing.with_requires("numpy>=2.0")
492+
@testing.with_requires("numpy>=2.1.0")
491493
class TestArithmeticBinary3(ArithmeticBinaryBase):
492494

493495
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)