Skip to content

Commit eb7809f

Browse files
HuilinXuHuilinXu
andauthored
TST: Replace ensure_clean_store with tmp_path in io/pytables/test_categorical.py (#63055)
Co-authored-by: HuilinXu <huilinlynn@wustl.edu>
1 parent f4851e5 commit eb7809f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/pytables/test_categorical.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@
44
from pandas import (
55
Categorical,
66
DataFrame,
7+
HDFStore,
78
Series,
89
_testing as tm,
910
concat,
1011
read_hdf,
1112
)
1213
from pandas.tests.io.pytables.common import (
1314
_maybe_remove,
14-
ensure_clean_store,
1515
)
1616

1717
pytestmark = [pytest.mark.single_cpu]
1818

1919

20-
def test_categorical(setup_path):
21-
with ensure_clean_store(setup_path) as store:
20+
def test_categorical(tmp_path):
21+
path = tmp_path / "test_categorical.h5"
22+
with HDFStore(path) as store:
2223
# Basic
2324
_maybe_remove(store, "s")
2425
s = Series(

0 commit comments

Comments
 (0)