From b507b27474ff078fe8db792e66c430da1f988954 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 24 Sep 2025 06:44:55 -0500 Subject: [PATCH 1/2] Resolve tests failures with rounding functions towards numpy 2.0 --- dpnp/tests/test_mathematical.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dpnp/tests/test_mathematical.py b/dpnp/tests/test_mathematical.py index bd15b4ca7281..38056786b0cc 100644 --- a/dpnp/tests/test_mathematical.py +++ b/dpnp/tests/test_mathematical.py @@ -2302,6 +2302,7 @@ def test_projection(self, dtype): @pytest.mark.parametrize("func", ["ceil", "floor", "trunc", "fix"]) class TestRoundingFuncs: + @testing.with_requires("numpy>=2.1.0") @pytest.mark.parametrize( "dt", get_all_dtypes(no_none=True, no_complex=True) ) From 9b6d56b9d5214fb9bd35744597f6bf82c6435fa3 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 24 Sep 2025 06:54:34 -0500 Subject: [PATCH 2/2] Add PR to the changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 172e6f6ecee5..28f1fefda3e5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -63,6 +63,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Fixed `dpnp.linalg.cond` to always return a real dtype [#2547](https://github.com/IntelPython/dpnp/pull/2547) * 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) ### Security