Skip to content

Commit c3b4006

Browse files
committed
Reject overflows in test_full
1 parent ae9ad89 commit c3b4006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

array_api_tests/test_creation_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ def full_fill_values(draw) -> st.SearchStrategy[Union[bool, int, float, complex]
391391
kw=st.shared(hh.kwargs(dtype=st.none() | xps.scalar_dtypes()), key="full_kw"),
392392
)
393393
def test_full(shape, fill_value, kw):
394-
out = xp.full(shape, fill_value, **kw)
394+
with hh.reject_overflow():
395+
out = xp.full(shape, fill_value, **kw)
395396
if kw.get("dtype", None):
396397
dtype = kw["dtype"]
397398
elif isinstance(fill_value, bool):

0 commit comments

Comments
 (0)