Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Nov 26, 2023
1 parent 4ef7fad commit fb8552c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pandas/tests/series/methods/test_reset_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
RangeIndex,
Series,
date_range,
option_context,
)
import pandas._testing as tm

Expand Down Expand Up @@ -165,8 +166,10 @@ def test_reset_index_inplace_and_drop_ignore_name(self):

def test_reset_index_drop_infer_string(self):
# GH#56160
pytest.importorskip("pyarrow")
ser = Series(["a", "b", "c"], dtype=object)
result = ser.reset_index(drop=True)
with option_context("future.infer_string", True):
result = ser.reset_index(drop=True)
tm.assert_series_equal(result, ser)


Expand Down

0 comments on commit fb8552c

Please sign in to comment.