From ddc145737f8e7ee3dac940225996476032c4fb3f Mon Sep 17 00:00:00 2001 From: HuilinXu Date: Sun, 9 Nov 2025 14:49:42 -0800 Subject: [PATCH] Replace ensure_clean_store with tmp_path in io/pytables/test_categorical.py --- pandas/tests/io/pytables/test_categorical.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pandas/tests/io/pytables/test_categorical.py b/pandas/tests/io/pytables/test_categorical.py index ed2616b24cd71..7c5a04c76e64f 100644 --- a/pandas/tests/io/pytables/test_categorical.py +++ b/pandas/tests/io/pytables/test_categorical.py @@ -4,6 +4,7 @@ from pandas import ( Categorical, DataFrame, + HDFStore, Series, _testing as tm, concat, @@ -11,14 +12,14 @@ ) from pandas.tests.io.pytables.common import ( _maybe_remove, - ensure_clean_store, ) pytestmark = [pytest.mark.single_cpu] -def test_categorical(setup_path): - with ensure_clean_store(setup_path) as store: +def test_categorical(tmp_path): + path = tmp_path / "test_categorical.h5" + with HDFStore(path) as store: # Basic _maybe_remove(store, "s") s = Series(