Skip to content

Commit 466fd8d

Browse files
author
Vahid Tavanashad
committed
add requires numpy-2.0.0
1 parent d44d2a2 commit 466fd8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_mathematical.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ def test_out_dtype(self, arr_dt, out_dt, dtype):
424424
assert_array_equal(expected, result)
425425
assert result is iout
426426

427+
@testing.with_requires("numpy>=2.0.0")
427428
def test_include_initial(self):
428429
a = numpy.arange(8).reshape(2, 2, 2)
429430
ia = dpnp.array(a)
@@ -527,6 +528,7 @@ def test_out_dtype(self, arr_dt, out_dt, dtype):
527528
assert_array_equal(expected, result)
528529
assert result is iout
529530

531+
@testing.with_requires("numpy>=2.0.0")
530532
def test_include_initial(self):
531533
a = numpy.arange(8).reshape(2, 2, 2)
532534
ia = dpnp.array(a)
@@ -1991,7 +1993,7 @@ def test_zero(self, dt):
19911993
expected = numpy.sinc(a)
19921994
assert_dtype_allclose(result, expected)
19931995

1994-
# TODO: add a proper NumPY version once resolved
1996+
# TODO: add a proper NumPy version once resolved
19951997
@testing.with_requires("numpy>=2.0.0")
19961998
def test_zero_fp16(self):
19971999
a = numpy.array([0.0], dtype=numpy.float16)

0 commit comments

Comments
 (0)