diff --git a/dpnp/tests/test_manipulation.py b/dpnp/tests/test_manipulation.py index 22bd84e907e9..f86271851ef3 100644 --- a/dpnp/tests/test_manipulation.py +++ b/dpnp/tests/test_manipulation.py @@ -1105,7 +1105,7 @@ def test_ndarray(self): result = ia.reshape((2, 5)) assert_array_equal(result, expected) - @testing.with_requires("numpy>=2.0") + @testing.with_requires("numpy>=2.1") def test_copy(self): a = numpy.arange(10).reshape(2, 5) ia = dpnp.array(a) diff --git a/dpnp/tests/test_mathematical.py b/dpnp/tests/test_mathematical.py index a8c278605886..6fe2e70bb59d 100644 --- a/dpnp/tests/test_mathematical.py +++ b/dpnp/tests/test_mathematical.py @@ -2445,10 +2445,10 @@ def test_out(self, func_params, dtype): assert result is dp_out # numpy.ceil, numpy.floor, numpy.trunc always return float dtype for - # NumPy < 2.0.0 while output has the dtype of input for NumPy >= 2.0.0 + # NumPy < 2.1.0 while output has the dtype of input for NumPy >= 2.1.0 # (dpnp follows the latter behavior except for boolean dtype where it # returns int8) - if numpy_version() < "2.0.0" or dtype == numpy.bool: + if numpy_version() < "2.1.0" or dtype == numpy.bool: check_type = False else: check_type = True diff --git a/dpnp/tests/test_strides.py b/dpnp/tests/test_strides.py index e265f3a8ba73..d51a033bf986 100644 --- a/dpnp/tests/test_strides.py +++ b/dpnp/tests/test_strides.py @@ -101,9 +101,10 @@ def test_1arg(func, dtype, stride): result = getattr(dpnp, func)(ia) expected = getattr(numpy, func)(a) - # numpy.ceil, numpy.floor, numpy.trunc always return float dtype for NumPy < 2.0.0 - # while for NumPy >= 2.0.0, output has the dtype of input (dpnp follows this behavior) - if numpy.lib.NumpyVersion(numpy.__version__) < "2.0.0": + # numpy.ceil, numpy.floor, numpy.trunc always return float dtype for + # NumPy < 2.1.0 while for NumPy >= 2.1.0, output has the dtype of input + # (dpnp follows this behavior) + if numpy_version() < "2.1.0": check_type = False else: check_type = True