8
8
get_all_dtypes ,
9
9
get_float_complex_dtypes ,
10
10
get_float_dtypes ,
11
+ get_integer_float_dtypes ,
11
12
)
12
13
13
14
@@ -83,7 +84,7 @@ def check_raises(func_name, exception, *args, **kwargs):
83
84
check_raises (func , TypeError , [0 , 1 , 2 , 3 ])
84
85
85
86
86
- @pytest .mark .parametrize ("dtype" , get_all_dtypes ( no_bool = True , no_complex = True ))
87
+ @pytest .mark .parametrize ("dtype" , get_integer_float_dtypes ( ))
87
88
def test_allclose (dtype ):
88
89
a = numpy .random .rand (10 )
89
90
b = a + numpy .random .rand (10 ) * 1e-8
@@ -508,7 +509,7 @@ def test_infinity_sign_errors(func):
508
509
getattr (dpnp , func )(x , out = out )
509
510
510
511
511
- @pytest .mark .parametrize ("dtype" , get_all_dtypes ( no_bool = True , no_complex = True ))
512
+ @pytest .mark .parametrize ("dtype" , get_integer_float_dtypes ( ))
512
513
@pytest .mark .parametrize (
513
514
"rtol" , [1e-05 , dpnp .array (1e-05 ), dpnp .full (10 , 1e-05 )]
514
515
)
@@ -549,7 +550,7 @@ def test_array_equiv(a, b):
549
550
assert_equal (result , expected )
550
551
551
552
552
- @pytest .mark .parametrize ("dtype" , get_all_dtypes ( no_bool = True , no_complex = True ))
553
+ @pytest .mark .parametrize ("dtype" , get_integer_float_dtypes ( ))
553
554
def test_array_equiv_dtype (dtype ):
554
555
a = numpy .array ([1 , 2 ], dtype = dtype )
555
556
b = numpy .array ([1 , 2 ], dtype = dtype )
@@ -575,7 +576,7 @@ def test_array_equiv_scalar(a):
575
576
assert_equal (result , expected )
576
577
577
578
578
- @pytest .mark .parametrize ("dtype" , get_all_dtypes ( no_bool = True , no_complex = True ))
579
+ @pytest .mark .parametrize ("dtype" , get_integer_float_dtypes ( ))
579
580
@pytest .mark .parametrize ("equal_nan" , [True , False ])
580
581
def test_array_equal_dtype (dtype , equal_nan ):
581
582
a = numpy .array ([1 , 2 ], dtype = dtype )
0 commit comments