Skip to content

Commit

Permalink
TST: fix file left behind
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel committed Oct 9, 2023
1 parent 1ab06f8 commit d39dedd
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit d39dedd

Please sign in to comment.