diff --git a/CHANGELOG.md b/CHANGELOG.md index 28f1fefda3e..ee2e6f47fae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,6 +64,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Resolved the issue in `dpnp.random` functions to allow any value of `size` where each element is castable to `Py_ssize_t` type [#2578](https://github.com/IntelPython/dpnp/pull/2578) * Resolved `conda build --test` issue in python 3.9 environment [#2583](https://github.com/IntelPython/dpnp/pull/2583) * Fixed tests for the rounding functions to depend on minimum required numpy version [#2589](https://github.com/IntelPython/dpnp/pull/2589) +* Fixed tests for the ufuncs to depend on minimum required numpy version [#2590](https://github.com/IntelPython/dpnp/pull/2590) ### Security diff --git a/dpnp/tests/test_mathematical.py b/dpnp/tests/test_mathematical.py index 38056786b0c..d0dbd44c853 100644 --- a/dpnp/tests/test_mathematical.py +++ b/dpnp/tests/test_mathematical.py @@ -1992,6 +1992,7 @@ def test_discont(self, dt): assert result.dtype == ia.dtype == a.dtype +@testing.with_requires("numpy>=2.1.0") @pytest.mark.usefixtures("suppress_divide_invalid_numpy_warnings") @pytest.mark.parametrize("val_type", [bool, int, float]) @pytest.mark.parametrize("dtype", get_all_dtypes(no_none=True)) diff --git a/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py b/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py index 3925b597424..1e233bddada 100644 --- a/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py +++ b/dpnp/tests/third_party/cupy/math_tests/test_arithmetic.py @@ -367,6 +367,7 @@ def check_binary(self, xp): return y +@testing.with_requires("numpy>=2.1.0") @testing.parameterize( *( testing.product( @@ -409,6 +410,7 @@ def test_binary(self): self.check_binary() +@testing.with_requires("numpy>=2.1.0") @testing.parameterize( *( testing.product( @@ -487,7 +489,7 @@ def test_binary(self): self.check_binary() -@testing.with_requires("numpy>=2.0") +@testing.with_requires("numpy>=2.1.0") class TestArithmeticBinary3(ArithmeticBinaryBase): @pytest.mark.parametrize(