diff --git a/tests/test_0020-support-unsigned-indexes.py b/tests/test_0020-support-unsigned-indexes.py index d95815c74d..9f85f61533 100644 --- a/tests/test_0020-support-unsigned-indexes.py +++ b/tests/test_0020-support-unsigned-indexes.py @@ -16,7 +16,7 @@ def maybe_deprecated_conversion(): def test_index(): - with pytest.warns(DeprecationWarning, match="conversion of -1"): + with maybe_deprecated_conversion(): array_u1 = np.array( [np.iinfo("u1").min, -1, 0, 1, np.iinfo("u1").max], dtype="u1" )