22from hypothesis import strategies as st
33
44from array_api_tests import _array_module as xp
5- from array_api_tests .hypothesis_helpers import (int_dtypes , arrays ,
6- two_mutually_broadcastable_shapes )
5+ import array_api_tests .hypothesis_helpers as hh
76from array_api_tests .shape_helpers import iter_indices , broadcast_shapes
87from array_api_tests .array_helpers import exactly_equal , notequal , less
98
@@ -24,10 +23,10 @@ def test_notequal():
2423 assert xp .all (xp .equal (notequal (a , b ), res ))
2524
2625
27- @given (two_mutually_broadcastable_shapes , int_dtypes , int_dtypes , st .data ())
26+ @given (hh . two_mutually_broadcastable_shapes , hh . all_int_dtypes , hh . all_int_dtypes , st .data ())
2827def test_less (shapes , dtype1 , dtype2 , data ):
29- x = data .draw (arrays (shape = shapes [0 ], dtype = dtype1 ))
30- y = data .draw (arrays (shape = shapes [1 ], dtype = dtype2 ))
28+ x = data .draw (hh . arrays (shape = shapes [0 ], dtype = dtype1 ))
29+ y = data .draw (hh . arrays (shape = shapes [1 ], dtype = dtype2 ))
3130
3231 res = less (x , y )
3332
0 commit comments