@@ -129,7 +129,7 @@ def test_iterator(self):
129
129
(pd .read_csv , "os" , FileNotFoundError , "csv" ),
130
130
(pd .read_fwf , "os" , FileNotFoundError , "txt" ),
131
131
(pd .read_excel , "xlrd" , FileNotFoundError , "xlsx" ),
132
- (pd .read_feather , "feather " , Exception , "feather" ),
132
+ (pd .read_feather , "pyarrow " , IOError , "feather" ),
133
133
(pd .read_hdf , "tables" , FileNotFoundError , "h5" ),
134
134
(pd .read_stata , "os" , FileNotFoundError , "dta" ),
135
135
(pd .read_sas , "os" , FileNotFoundError , "sas7bdat" ),
@@ -153,8 +153,11 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
153
153
msg7 = (
154
154
fr"\[Errno 2\] File o directory non esistente: '.+does_not_exist\.{ fn_ext } '"
155
155
)
156
+ msg8 = fr"Failed to open local file.+does_not_exist\.{ fn_ext } .?, error: .*"
157
+
156
158
with pytest .raises (
157
- error_class , match = fr"({ msg1 } |{ msg2 } |{ msg3 } |{ msg4 } |{ msg5 } |{ msg6 } |{ msg7 } )"
159
+ error_class ,
160
+ match = fr"({ msg1 } |{ msg2 } |{ msg3 } |{ msg4 } |{ msg5 } |{ msg6 } |{ msg7 } |{ msg8 } )" ,
158
161
):
159
162
reader (path )
160
163
@@ -165,7 +168,7 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
165
168
(pd .read_table , "os" , FileNotFoundError , "csv" ),
166
169
(pd .read_fwf , "os" , FileNotFoundError , "txt" ),
167
170
(pd .read_excel , "xlrd" , FileNotFoundError , "xlsx" ),
168
- (pd .read_feather , "feather " , Exception , "feather" ),
171
+ (pd .read_feather , "pyarrow " , IOError , "feather" ),
169
172
(pd .read_hdf , "tables" , FileNotFoundError , "h5" ),
170
173
(pd .read_stata , "os" , FileNotFoundError , "dta" ),
171
174
(pd .read_sas , "os" , FileNotFoundError , "sas7bdat" ),
@@ -193,9 +196,11 @@ def test_read_expands_user_home_dir(
193
196
msg7 = (
194
197
fr"\[Errno 2\] File o directory non esistente: '.+does_not_exist\.{ fn_ext } '"
195
198
)
199
+ msg8 = fr"Failed to open local file.+does_not_exist\.{ fn_ext } .?, error: .*"
196
200
197
201
with pytest .raises (
198
- error_class , match = fr"({ msg1 } |{ msg2 } |{ msg3 } |{ msg4 } |{ msg5 } |{ msg6 } |{ msg7 } )"
202
+ error_class ,
203
+ match = fr"({ msg1 } |{ msg2 } |{ msg3 } |{ msg4 } |{ msg5 } |{ msg6 } |{ msg7 } |{ msg8 } )" ,
199
204
):
200
205
reader (path )
201
206
@@ -212,7 +217,7 @@ def test_read_expands_user_home_dir(
212
217
(pd .read_excel , "xlrd" , ("io" , "data" , "excel" , "test1.xlsx" )),
213
218
(
214
219
pd .read_feather ,
215
- "feather " ,
220
+ "pyarrow " ,
216
221
("io" , "data" , "feather" , "feather-0_3_1.feather" ),
217
222
),
218
223
(
@@ -249,7 +254,7 @@ def test_read_fspath_all(self, reader, module, path, datapath):
249
254
[
250
255
("to_csv" , {}, "os" ),
251
256
("to_excel" , {"engine" : "xlwt" }, "xlwt" ),
252
- ("to_feather" , {}, "feather " ),
257
+ ("to_feather" , {}, "pyarrow " ),
253
258
("to_html" , {}, "os" ),
254
259
("to_json" , {}, "os" ),
255
260
("to_latex" , {}, "os" ),
0 commit comments