diff --git a/xptests/dtype_helpers.py b/xptests/dtype_helpers.py index ce749d9e..6ab886e5 100644 --- a/xptests/dtype_helpers.py +++ b/xptests/dtype_helpers.py @@ -210,7 +210,7 @@ def result_type(*dtypes: DataType): "ceil": numeric_dtypes, "cos": float_dtypes, "cosh": float_dtypes, - "divide": float_dtypes, + "divide": numeric_dtypes, "equal": all_dtypes, "exp": float_dtypes, "expm1": float_dtypes, @@ -236,7 +236,7 @@ def result_type(*dtypes: DataType): "negative": numeric_dtypes, "not_equal": all_dtypes, "positive": numeric_dtypes, - "pow": float_dtypes, + "pow": numeric_dtypes, "remainder": numeric_dtypes, "round": numeric_dtypes, "sign": numeric_dtypes, diff --git a/xptests/test_elementwise_functions.py b/xptests/test_operators_and_elementwise_functions.py similarity index 99% rename from xptests/test_elementwise_functions.py rename to xptests/test_operators_and_elementwise_functions.py index cff66854..cf1d2dae 100644 --- a/xptests/test_elementwise_functions.py +++ b/xptests/test_operators_and_elementwise_functions.py @@ -649,7 +649,7 @@ def test_cosh(x): ah.assert_exactly_equal(domain, codomain) -@pytest.mark.parametrize(binary_argnames, make_binary_params("divide", dh.float_dtypes)) +@pytest.mark.parametrize(binary_argnames, make_binary_params("divide", dh.numeric_dtypes)) @given(data=st.data()) def test_divide( func_name, @@ -1252,7 +1252,7 @@ def test_positive(func_name, func, strat, data): ah.assert_exactly_equal(out, x) -@pytest.mark.parametrize(binary_argnames, make_binary_params("pow", dh.float_dtypes)) +@pytest.mark.parametrize(binary_argnames, make_binary_params("pow", dh.numeric_dtypes)) @given(data=st.data()) def test_pow( func_name,