Skip to content

Commit

Permalink
fix for non-future mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Nov 7, 2024
1 parent 8d562a4 commit 454f405
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pandas/tests/series/indexing/test_setitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
NaT,
Period,
Series,
StringDtype,
Timedelta,
Timestamp,
array,
Expand Down Expand Up @@ -1371,13 +1372,13 @@ def raises(self):
"val,exp_dtype,raises",
[
(1, object, True),
("e", "str", False),
("e", StringDtype(na_value=np.nan), False),
],
)
class TestCoercionString(CoercionTest):
@pytest.fixture
def obj(self):
return Series(["a", "b", "c", "d"])
return Series(["a", "b", "c", "d"], dtype=StringDtype(na_value=np.nan))


@pytest.mark.parametrize(
Expand Down

0 comments on commit 454f405

Please sign in to comment.