File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1105,16 +1105,19 @@ def test_out_dtypes(self, dtype):
1105
1105
dp_array2 = dpnp .arange (size , dtype = dtype )
1106
1106
1107
1107
dp_out = dpnp .empty (size , dtype = dpnp .complex64 )
1108
+ check_dtype = True
1108
1109
if dtype != dpnp .complex64 :
1109
1110
# dtype of out mismatches types of input arrays
1110
1111
with pytest .raises (TypeError ):
1111
1112
dpnp .divide (dp_array1 , dp_array2 , out = dp_out )
1112
1113
1113
1114
# allocate new out with expected type
1114
1115
dp_out = dpnp .empty (size , dtype = dtype )
1116
+ # Set check_dtype to False as dtype does not match
1117
+ check_dtype = False
1115
1118
1116
1119
result = dpnp .divide (dp_array1 , dp_array2 , out = dp_out )
1117
- assert_dtype_allclose (result , expected )
1120
+ assert_dtype_allclose (result , expected , check_type = check_dtype )
1118
1121
1119
1122
@pytest .mark .usefixtures ("suppress_divide_invalid_numpy_warnings" )
1120
1123
@pytest .mark .parametrize ("dtype" , get_float_complex_dtypes ())
You can’t perform that action at this time.
0 commit comments