Skip to content

Commit abe76ea

Browse files
skip tests if pyarrow not installed
1 parent 75cf5bc commit abe76ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/tseries/frequencies/test_inference.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
datetime,
33
timedelta,
44
)
5+
import importlib
56

67
import numpy as np
78
import pytest
@@ -556,6 +557,9 @@ def test_infer_freq_non_nano_tzaware(tz_aware_fixture):
556557
assert res == "B"
557558

558559

560+
@pytest.mark.skipif(
561+
importlib.util.find_spec("pyarrow") is None, reason="pyarrow not installed"
562+
)
559563
@pytest.mark.parametrize(
560564
("data", "expected"),
561565
[

0 commit comments

Comments
 (0)