Skip to content

Commit

Permalink
fix for default mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Nov 6, 2023
1 parent 5a5a1d5 commit da2a9bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandas/tests/indexing/test_chaining_and_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def test_setitem_cache_updating_slices(
out = DataFrame({"A": [0, 0, 0]}, index=date_range("5/7/2014", "5/9/2014"))
for ix, row in df.iterrows():
# TODO(CoW-warn) should not warn
with tm.assert_produces_warning(FutureWarning):
with tm.assert_produces_warning(
FutureWarning if warn_copy_on_write else None
):
out.loc[six:eix, row["C"]] += row["D"]

tm.assert_frame_equal(out, expected)
Expand Down

0 comments on commit da2a9bd

Please sign in to comment.