File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 11
11
HDFStore ,
12
12
Index ,
13
13
MultiIndex ,
14
- _testing as tm ,
15
14
date_range ,
16
15
read_hdf ,
17
16
)
@@ -182,16 +181,16 @@ def test_append_with_diff_col_name_types_raises_value_error(setup_path):
182
181
store .append (name , d )
183
182
184
183
185
- def test_invalid_complib (setup_path ):
184
+ def test_invalid_complib (tmp_path , setup_path ):
186
185
df = DataFrame (
187
186
np .random .default_rng (2 ).random ((4 , 5 )),
188
187
index = list ("abcd" ),
189
188
columns = list ("ABCDE" ),
190
189
)
191
- with tm . ensure_clean ( setup_path ) as path :
192
- msg = r"complib only supports \[.*\] compression."
193
- with pytest .raises (ValueError , match = msg ):
194
- df .to_hdf (path , key = "df" , complib = "foolib" )
190
+ path = tmp_path / setup_path
191
+ msg = r"complib only supports \[.*\] compression."
192
+ with pytest .raises (ValueError , match = msg ):
193
+ df .to_hdf (path , key = "df" , complib = "foolib" )
195
194
196
195
197
196
@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments