Skip to content
Open
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
18 changes: 3 additions & 15 deletions dpnp/tests/test_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
has_support_aspect64,
numpy_version,
)
from .third_party.cupy import testing


class TestDigitize:
Expand Down Expand Up @@ -610,21 +611,8 @@ def test_minlength(self, array, minlength):
result = dpnp.bincount(ia, minlength=minlength)
assert_allclose(result, expected)

@pytest.mark.filterwarnings("ignore::DeprecationWarning")
@pytest.mark.parametrize(
"xp",
[
dpnp,
pytest.param(
numpy,
marks=pytest.mark.xfail(
numpy_version() < "2.3.0",
reason="numpy deprecates but accepts that",
strict=True,
),
),
],
)
@testing.with_requires("numpy>=2.3.0")
@pytest.mark.parametrize("xp", [dpnp, numpy])
def test_minlength_none(self, xp):
a = xp.array([1, 2, 3])
assert_raises_regex(
Expand Down
Loading