Skip to content

Commit 9feef07

Browse files
committed
Expect warnings
1 parent f11c85a commit 9feef07

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

array_api_strict/tests/test_searching_functions.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ def test_where_with_scalars():
1414
xp.where(x == 1, 42, 44)
1515

1616
# Versions after 2023.12 support scalar arguments
17-
with ArrayAPIStrictFlags(api_version=draft_version):
17+
with (pytest.warns(
18+
UserWarning,
19+
match="The 2024.12 version of the array API specification is in draft status"
20+
),
21+
ArrayAPIStrictFlags(api_version=draft_version),
22+
):
1823
x_where = xp.where(x == 1, 42, 44)
1924

2025
expected = xp.asarray([42, 44, 44, 42])

0 commit comments

Comments
 (0)