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 1111 HDFStore ,
1212 Index ,
1313 MultiIndex ,
14- _testing as tm ,
1514 date_range ,
1615 read_hdf ,
1716)
@@ -182,16 +181,16 @@ def test_append_with_diff_col_name_types_raises_value_error(setup_path):
182181 store .append (name , d )
183182
184183
185- def test_invalid_complib (setup_path ):
184+ def test_invalid_complib (tmp_path , setup_path ):
186185 df = DataFrame (
187186 np .random .default_rng (2 ).random ((4 , 5 )),
188187 index = list ("abcd" ),
189188 columns = list ("ABCDE" ),
190189 )
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" )
195194
196195
197196@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments