Skip to content

Commit

Permalink
avoid more invalid types
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jun 6, 2024
1 parent af7d889 commit e61cdab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/functional/builtins/codegen/test_abi_decode_fuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def _go(skip=skip):
return t(bound)

if t in (DArrayT, SArrayT):
subtype = _go(skip=[TupleT])
if t == SArrayT:
subtype = _go(skip=[TupleT, BytesT, StringT])
else:
subtype = _go(skip=[TupleT])
bound = draw(st.integers(min_value=1, max_value=16))
return t(subtype, bound)

Expand Down

0 comments on commit e61cdab

Please sign in to comment.