Skip to content

Commit ef8ad47

Browse files
committed
Fix consolidation test
1 parent 7c02c71 commit ef8ad47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/frame/test_block_internals.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,10 @@ def test_nonconsolidated_item_cache_take():
390390
df = DataFrame(
391391
{
392392
"col1": Series(["a"], dtype=object),
393-
"col2": Series([0], dtype=object),
394393
}
395394
)
395+
df["col2"] = Series([0], dtype=object)
396+
assert not df._mgr.is_consolidated()
396397

397398
# access column (item cache)
398399
df["col1"] == "A"

0 commit comments

Comments
 (0)