Skip to content

Commit

Permalink
test: guard for older NumPy
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Jul 18, 2023
1 parent a950125 commit 28e560a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_0020-support-unsigned-indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 28e560a

Please sign in to comment.