Skip to content

Commit 52dc7fb

Browse files
committed
added import condition for pyarrow in test
1 parent 1cf2de8 commit 52dc7fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: pandas/tests/series/methods/test_map.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,10 @@ def test_map_kwargs():
605605
expected = Series([4, 6, 7])
606606
tm.assert_series_equal(result, expected)
607607

608-
609608
def test_map_arrow_timestamp_dict():
610609
# GH 61231
610+
pytest.importorskip("pyarrow", minversion="10.0.1")
611+
611612
ser = Series(date_range("2023-01-01", periods=3)).astype("timestamp[ns][pyarrow]")
612613
mapper = {ts: i for i, ts in enumerate(ser)}
613614
result = ser.map(mapper)

0 commit comments

Comments
 (0)