|
3 | 3 | from math import sqrt
|
4 | 4 |
|
5 | 5 | 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) |
9 | 8 | from hypothesis.extra.numpy import mutually_broadcastable_shapes
|
10 | 9 | from hypothesis import assume
|
11 | 10 |
|
|
14 | 13 | floating_dtype_objects, numeric_dtype_objects,
|
15 | 14 | boolean_dtype_objects,
|
16 | 15 | 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 |
18 | 17 | from . import _array_module
|
19 | 18 |
|
20 | 19 | from .function_stubs import elementwise_functions
|
|
23 | 22 | # Set this to True to not fail tests just because a dtype isn't implemented.
|
24 | 23 | # If no compatible dtype is implemented for a given test, the test will fail
|
25 | 24 | # 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 |
27 | 26 | # places in the tests.
|
28 | 27 | FILTER_UNDEFINED_DTYPES = True
|
29 | 28 |
|
@@ -125,10 +124,6 @@ def two_broadcastable_shapes(draw, shapes=shapes):
|
125 | 124 | sizes = integers(0, MAX_ARRAY_SIZE)
|
126 | 125 | sqrt_sizes = integers(0, SQRT_MAX_ARRAY_SIZE)
|
127 | 126 |
|
128 |
| -ones_arrays = builds(ones, shapes, dtype=shared_dtypes) |
129 |
| - |
130 |
| -nonbroadcastable_ones_array_two_args = hypotheses_tuples(ones_arrays, ones_arrays) |
131 |
| - |
132 | 127 | # TODO: Generate general arrays here, rather than just scalars.
|
133 | 128 | numeric_arrays = builds(full, just((1,)), floats())
|
134 | 129 |
|
|
0 commit comments