Skip to content

Commit 3757d90

Browse files
committed
Remove ensure_clean_store reference from test_retain_attributes.py
1 parent 8d32d57 commit 3757d90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/io/pytables/test_retain_attributes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pandas import (
44
DataFrame,
55
DatetimeIndex,
6+
HDFStore,
67
Series,
78
_testing as tm,
89
date_range,
@@ -11,18 +12,17 @@
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_retain_index_attributes(setup_path, unit):
20+
def test_retain_index_attributes(temp_file, unit):
2121
# GH 3499, losing frequency info on index recreation
2222
dti = date_range("2000-1-1", periods=3, freq="h", unit=unit)
2323
df = DataFrame({"A": Series(range(3), index=dti)})
2424

25-
with ensure_clean_store(setup_path) as store:
25+
with HDFStore(temp_file) as store:
2626
_maybe_remove(store, "data")
2727
store.put("data", df, format="table")
2828

0 commit comments

Comments
 (0)