diff --git a/CHANGELOG.md b/CHANGELOG.md index f8a79b62849..070e3428a04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ This release is compatible with NumPy 2.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 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 954ec4b4ea3..977313e266f 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 0c652759f2a..a0fa09d7661 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()