Skip to content

Commit 813eda1

Browse files
committed
Remove unused ones_arrays strategies
1 parent dfe977b commit 813eda1

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

array_api_tests/hypothesis_helpers.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
from math import sqrt
44

55
from hypothesis.strategies import (lists, integers, builds, sampled_from,
6-
shared, tuples as hypotheses_tuples,
7-
floats, just, composite, one_of, none,
8-
booleans)
6+
shared, floats, just, composite, one_of,
7+
none, booleans)
98
from hypothesis.extra.numpy import mutually_broadcastable_shapes
109
from hypothesis import assume
1110

@@ -14,7 +13,7 @@
1413
floating_dtype_objects, numeric_dtype_objects,
1514
boolean_dtype_objects,
1615
integer_or_boolean_dtype_objects, dtype_objects)
17-
from ._array_module import (ones, full, float32, float64, bool as bool_dtype, _UndefinedStub)
16+
from ._array_module import full, float32, float64, bool as bool_dtype, _UndefinedStub
1817
from . import _array_module
1918

2019
from .function_stubs import elementwise_functions
@@ -23,7 +22,7 @@
2322
# Set this to True to not fail tests just because a dtype isn't implemented.
2423
# If no compatible dtype is implemented for a given test, the test will fail
2524
# with a hypothesis health check error. Note that this functionality will not
26-
# work for floating point dtypes are those are assumed to be defined in other
25+
# work for floating point dtypes as those are assumed to be defined in other
2726
# places in the tests.
2827
FILTER_UNDEFINED_DTYPES = True
2928

@@ -125,10 +124,6 @@ def two_broadcastable_shapes(draw, shapes=shapes):
125124
sizes = integers(0, MAX_ARRAY_SIZE)
126125
sqrt_sizes = integers(0, SQRT_MAX_ARRAY_SIZE)
127126

128-
ones_arrays = builds(ones, shapes, dtype=shared_dtypes)
129-
130-
nonbroadcastable_ones_array_two_args = hypotheses_tuples(ones_arrays, ones_arrays)
131-
132127
# TODO: Generate general arrays here, rather than just scalars.
133128
numeric_arrays = builds(full, just((1,)), floats())
134129

0 commit comments

Comments
 (0)