Skip to content

Commit 2a65fdd

Browse files
authored
TST: fix file left behind (#55464)
1 parent 1ab06f8 commit 2a65fdd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/tests/io/pytables/test_store.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,18 @@ def test_store_dropna(tmp_path, setup_path):
303303
tm.assert_frame_equal(df_without_missing, reloaded)
304304

305305

306-
def test_keyword_deprecation():
306+
def test_keyword_deprecation(tmp_path, setup_path):
307307
# GH 54229
308+
path = tmp_path / setup_path
309+
308310
msg = (
309311
"Starting with pandas version 3.0 all arguments of to_hdf except for the "
310312
"argument 'path_or_buf' will be keyword-only."
311313
)
312314
df = DataFrame([{"A": 1, "B": 2, "C": 3}, {"A": 1, "B": 2, "C": 3}])
313315

314316
with tm.assert_produces_warning(FutureWarning, match=msg):
315-
df.to_hdf("example", "key")
317+
df.to_hdf(path, "key")
316318

317319

318320
def test_to_hdf_with_min_itemsize(tmp_path, setup_path):

0 commit comments

Comments
 (0)