Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test-only improvements #4047

Merged
merged 5 commits into from
Jul 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
faster test
  • Loading branch information
Zac-HD committed Jul 13, 2024
commit 006b0dd2cd70a61097516f9048a46e5c18fb6b62
3 changes: 2 additions & 1 deletion hypothesis-python/tests/array_api/test_arrays.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def test_generate_arrays_from_zero_dimensions(xp, xps):
def test_generate_arrays_from_zero_sided_shapes(xp, xps, data):
"""Generate arrays from shapes with at least one 0-sized dimension."""
shape = data.draw(xps.array_shapes(min_side=0).filter(lambda s: 0 in s))
assert_all_examples(xps.arrays(xp.int8, shape), lambda x: x.shape == shape)
arr = data.draw(xps.arrays(xp.int8, shape))
assert arr.shape == shape


def test_generate_arrays_from_unsigned_ints(xp, xps):
Expand Down