1919)
2020from pandas .tests .io .pytables .common import (
2121 _maybe_remove ,
22- ensure_clean_store ,
2322)
2423
2524from pandas .io .pytables import TableIterator
@@ -70,14 +69,14 @@ def test_read_missing_key_opened_store(tmp_path, setup_path):
7069 read_hdf (store , "k1" )
7170
7271
73- def test_read_column (setup_path ):
72+ def test_read_column (temp_file ):
7473 df = DataFrame (
7574 np .random .default_rng (2 ).standard_normal ((10 , 4 )),
7675 columns = Index (list ("ABCD" )),
7776 index = date_range ("2000-01-01" , periods = 10 , freq = "B" ),
7877 )
7978
80- with ensure_clean_store ( setup_path ) as store :
79+ with HDFStore ( temp_file ) as store :
8180 _maybe_remove (store , "df" )
8281
8382 # GH 17912
@@ -153,7 +152,7 @@ def test_read_column(setup_path):
153152
154153
155154def test_pytables_native_read (datapath ):
156- with ensure_clean_store (
155+ with HDFStore (
157156 datapath ("io" , "data" , "legacy_hdf/pytables_native.h5" ), mode = "r"
158157 ) as store :
159158 d2 = store ["detector/readout" ]
@@ -162,7 +161,7 @@ def test_pytables_native_read(datapath):
162161
163162@pytest .mark .skipif (is_platform_windows (), reason = "native2 read fails oddly on windows" )
164163def test_pytables_native2_read (datapath ):
165- with ensure_clean_store (
164+ with HDFStore (
166165 datapath ("io" , "data" , "legacy_hdf" , "pytables_native2.h5" ), mode = "r"
167166 ) as store :
168167 str (store )
0 commit comments