Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pandas/tests/io/pytables/test_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,16 +303,18 @@ def test_store_dropna(tmp_path, setup_path):
tm.assert_frame_equal(df_without_missing, reloaded)


def test_keyword_deprecation():
def test_keyword_deprecation(tmp_path, setup_path):
# GH 54229
path = tmp_path / setup_path

msg = (
"Starting with pandas version 3.0 all arguments of to_hdf except for the "
"argument 'path_or_buf' will be keyword-only."
)
df = DataFrame([{"A": 1, "B": 2, "C": 3}, {"A": 1, "B": 2, "C": 3}])

with tm.assert_produces_warning(FutureWarning, match=msg):
df.to_hdf("example", "key")
df.to_hdf(path, "key")


def test_to_hdf_with_min_itemsize(tmp_path, setup_path):
Expand Down