Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions dpnp/tests/third_party/cupy/core_tests/test_gufuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand All @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading