Skip to content

Commit 2bba1e2

Browse files
committed
skip if no pyarrow
1 parent 1123455 commit 2bba1e2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

pandas/tests/arithmetic/test_datetime64.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from pandas._libs.tslibs.conversion import localize_pydatetime
2121
from pandas._libs.tslibs.offsets import shift_months
2222
from pandas.errors import PerformanceWarning
23+
import pandas.util._test_decorators as td
2324

2425
import pandas as pd
2526
from pandas import (
@@ -1166,7 +1167,9 @@ def test_dt64arr_add_sub_parr(
11661167
)
11671168
assert_invalid_addsub_type(dtarr, parr, msg)
11681169

1169-
@pytest.mark.parametrize("future", [True, False, None])
1170+
@pytest.mark.parametrize(
1171+
"future", [pytest.param(True, marks=td.skip_if_no("pyarrow")), False, None]
1172+
)
11701173
def test_dt64arr_addsub_time_objects_raises(
11711174
self, box_with_array, tz_naive_fixture, future
11721175
):

pandas/tests/dtypes/test_inference.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,9 @@ def test_maybe_convert_objects_ea(self, idx):
10391039
)
10401040
tm.assert_extension_array_equal(result, idx._data)
10411041

1042-
@pytest.mark.parametrize("future", [True, False, None])
1042+
@pytest.mark.parametrize(
1043+
"future", [pytest.param(True, marks=td.skip_if_no("pyarrow")), False, None]
1044+
)
10431045
def test_maybe_convert_objects_time(self, future):
10441046
ts = Timestamp.now()
10451047
objs = np.array([ts.time()], dtype=object)

0 commit comments

Comments
 (0)