Skip to content

Commit 7ff8825

Browse files
author
nli307
committed
skip pyarrow tests if no pyarrow
1 parent d3680a1 commit 7ff8825

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/dtypes/cast/test_find_common_type.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
PeriodDtype,
1111
)
1212

13+
import pandas.util._test_decorators as td
14+
1315
from pandas import (
1416
Categorical,
1517
Index,
@@ -165,6 +167,7 @@ def test_interval_dtype(left, right):
165167
assert result == object
166168

167169

170+
@td.skip_if_no("pyarrow")
168171
@pytest.mark.parametrize("dtype", interval_dtypes)
169172
def test_interval_dtype_with_categorical(dtype):
170173
obj = Index([], dtype=dtype)
@@ -175,6 +178,7 @@ def test_interval_dtype_with_categorical(dtype):
175178
assert result == dtype
176179

177180

181+
@td.skip_if_no("pyarrow")
178182
@pytest.mark.parametrize(
179183
"dtypes,expected",
180184
[
@@ -202,6 +206,7 @@ def test_pyarrow_date_dtypes(dtypes, expected):
202206
assert result == pandas_dtype(expected)
203207

204208

209+
@td.skip_if_no("pyarrow")
205210
@pytest.mark.xfail(
206211
reason="""
207212
Finding common pyarrow dtypes relies on conversion

0 commit comments

Comments
 (0)