Skip to content

Commit b50e7bf

Browse files
committed
STYLE: remove use in pd.api.dtype in test_ufunc.py (pandas-dev#39203)
1 parent c5b4272 commit b50e7bf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/tests/frame/test_ufunc.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import pandas as pd
55
import pandas._testing as tm
6+
from pandas.api.types import is_extension_array_dtype
67

78
dtypes = [
89
"int64",
@@ -26,7 +27,7 @@ def test_unary_unary(dtype):
2627
@pytest.mark.parametrize("dtype", dtypes)
2728
def test_unary_binary(request, dtype):
2829
# unary input, binary output
29-
if pd.api.types.is_extension_array_dtype(dtype) or isinstance(dtype, dict):
30+
if is_extension_array_dtype(dtype) or isinstance(dtype, dict):
3031
request.node.add_marker(
3132
pytest.mark.xfail(
3233
reason="Extension / mixed with multiple outputs not implemented."
@@ -61,9 +62,9 @@ def test_binary_input_dispatch_binop(dtype):
6162
@pytest.mark.parametrize("dtype_b", dtypes)
6263
def test_binary_input_aligns_columns(request, dtype_a, dtype_b):
6364
if (
64-
pd.api.types.is_extension_array_dtype(dtype_a)
65+
is_extension_array_dtype(dtype_a)
6566
or isinstance(dtype_a, dict)
66-
or pd.api.types.is_extension_array_dtype(dtype_b)
67+
or is_extension_array_dtype(dtype_b)
6768
or isinstance(dtype_b, dict)
6869
):
6970
request.node.add_marker(
@@ -89,7 +90,7 @@ def test_binary_input_aligns_columns(request, dtype_a, dtype_b):
8990

9091
@pytest.mark.parametrize("dtype", dtypes)
9192
def test_binary_input_aligns_index(request, dtype):
92-
if pd.api.types.is_extension_array_dtype(dtype) or isinstance(dtype, dict):
93+
if is_extension_array_dtype(dtype) or isinstance(dtype, dict):
9394
request.node.add_marker(
9495
pytest.mark.xfail(
9596
reason="Extension / mixed with multiple inputs not implemented."

0 commit comments

Comments
 (0)