From a571257f226458fbd7da61bcd201892354118489 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 17 Jun 2026 13:31:45 +0200 Subject: [PATCH 1/2] Backport CuPy PR#10020 --- dpnp/tests/third_party/cupy/core_tests/test_gufuncs.py | 6 +++--- .../third_party/cupy/core_tests/test_ndarray_reduction.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dpnp/tests/third_party/cupy/core_tests/test_gufuncs.py b/dpnp/tests/third_party/cupy/core_tests/test_gufuncs.py index 954ec4b4ea3b..977313e266f9 100644 --- a/dpnp/tests/third_party/cupy/core_tests/test_gufuncs.py +++ b/dpnp/tests/third_party/cupy/core_tests/test_gufuncs.py @@ -255,7 +255,7 @@ def default(x, y): else: assert dtypes_access[dtype] == default - @pytest.mark.parametrize("sig,", ["ii->i", "i", ("i", "i", "i")]) + @pytest.mark.parametrize("sig", ["ii->i", "i", ("i", "i", "i")]) def test_signature_lookup(self, sig): called = False @@ -283,7 +283,7 @@ def default(x, y): assert z.dtype == numpy.int32 assert called - @pytest.mark.parametrize("sigs,", [("i",), ("",), ("iii->i",), ("ii->",)]) + @pytest.mark.parametrize("sigs", [("i",), ("",), ("iii->i",), ("ii->",)]) def test_invalid_signatures(self, sigs): def default(x, y): @@ -292,7 +292,7 @@ def default(x, y): with pytest.raises(ValueError): _GUFunc(default, "(i),(i)->(i)", signatures=sigs) - @pytest.mark.parametrize("sig,", ["i->i", "id->i", ""]) + @pytest.mark.parametrize("sig", ["i->i", "id->i", ""]) def test_invalid_lookup(self, sig): def default(x, y): diff --git a/dpnp/tests/third_party/cupy/core_tests/test_ndarray_reduction.py b/dpnp/tests/third_party/cupy/core_tests/test_ndarray_reduction.py index 0c652759f2a8..a0fa09d7661d 100644 --- a/dpnp/tests/third_party/cupy/core_tests/test_ndarray_reduction.py +++ b/dpnp/tests/third_party/cupy/core_tests/test_ndarray_reduction.py @@ -17,7 +17,8 @@ class TestArrayReduction: @pytest.fixture(scope="class") - def exclude_cutensor(self): + @classmethod + def exclude_cutensor(cls): # cuTENSOR seems to have issues in handling inf/nan in reduction-based # routines, so we use this fixture to skip testing it # self.old_routine_accelerators = _acc.get_routine_accelerators() From 38d1c720a53cd0cb49a1b5b1ec217fa673a288be Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Wed, 17 Jun 2026 14:13:16 +0200 Subject: [PATCH 2/2] Update chnagelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 225b27b1a523..f69c3b48cec5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ This release is compatible with NumPy 2.4.5. * Fixed a bug in `astype` where casting floating point types to unsigned integral types could cause an intermediate signed integral type to overflow, leading to incorrect results [#2930](https://github.com/IntelPython/dpnp/pull/2930) * Fixed incorrect `dpnp.tensor.expm1` result for `complex(±0, 0)` special case on CPU to match the Python Array API specification [#2926](https://github.com/IntelPython/dpnp/pull/2926) * Fixed tests which expected lists from `dpctl` functions which now return tuples (i.e., `dpctl.SyclDevice.create_sub_devices`) [#2945](https://github.com/IntelPython/dpnp/pull/2945) +* Fixed `PytestRemovedIn10Warning` raised by `pytest` 9.1.0 by converting class-scoped fixtures to class methods [#2952](https://github.com/IntelPython/dpnp/pull/2952) ### Security