def check_int(arr): _verify_is_floatingpoint_type(arr, 'test')
def test_verify_float_arr(dtype): arr = np.arange(1., dtype=dtype) _verify_is_floatingpoint_type(arr, 'test') with pytest.raises(TypeError): _verify_is_integer_type(arr, 'test')
def check_int(arr): _verify_is_floatingpoint_type(arr, 'test')
def test_verify_float_arr(dtype): arr = np.arange(1., dtype=dtype) _verify_is_floatingpoint_type(arr, 'test') with pytest.raises(TypeError): _verify_is_integer_type(arr, 'test')