File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
pandas/tests/tseries/frequencies Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2
2
datetime ,
3
3
timedelta ,
4
4
)
5
- import importlib
6
5
7
6
import numpy as np
8
7
import pytest
@@ -557,9 +556,6 @@ def test_infer_freq_non_nano_tzaware(tz_aware_fixture):
557
556
assert res == "B"
558
557
559
558
560
- @pytest .mark .skipif (
561
- importlib .util .find_spec ("pyarrow" ) is None , reason = "pyarrow not installed"
562
- )
563
559
@pytest .mark .parametrize (
564
560
("data" , "expected" ),
565
561
[
@@ -579,5 +575,6 @@ def test_infer_freq_non_nano_tzaware(tz_aware_fixture):
579
575
)
580
576
@pytest .mark .parametrize ("cls" , [Index , Series ])
581
577
def test_infer_freq_pyarrow (data , expected , cls ):
578
+ pytest .importorskip ("pyarrow" )
582
579
obj = cls (data ).astype ("timestamp[s][pyarrow]" )
583
580
assert frequencies .infer_freq (obj ) == expected
You can’t perform that action at this time.
0 commit comments