diff --git a/dpnp/tests/test_histogram.py b/dpnp/tests/test_histogram.py index a00312af3a5..6920e2d8803 100644 --- a/dpnp/tests/test_histogram.py +++ b/dpnp/tests/test_histogram.py @@ -23,6 +23,7 @@ has_support_aspect64, numpy_version, ) +from .third_party.cupy import testing class TestDigitize: @@ -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(