Skip to content

Commit 30d680e

Browse files
committed
keep the test simple by triggering mutation in the first row and column for frame axis test
1 parent a1330fb commit 30d680e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/copy_view/test_methods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def test_set_frame_axis(using_copy_on_write):
247247
assert not np.shares_memory(get_array(df2, "a"), get_array(df, "a"))
248248

249249
# mutating df2 triggers a copy-on-write for that column / block
250-
df2.iloc[0, 1] = 0
251-
assert not np.shares_memory(get_array(df2, "b"), get_array(df, "b"))
250+
df2.iloc[0, 0] = 0
251+
assert not np.shares_memory(get_array(df2, "a"), get_array(df, "a"))
252252
tm.assert_frame_equal(df, df_orig)
253253

254254

0 commit comments

Comments
 (0)