Skip to content

Commit c5fdf9e

Browse files
Debian Science Teamrebecca-palmer
Debian Science Team
authored andcommitted
Skip feather tests if pyarrow not available
pandas now needs pyarrow.feather (not in Debian), not python3-feather-format, for read_feather/to_feather Author: Rebecca N. Palmer <[email protected]> Forwarded: accepted for 1.1 pandas-dev/pandas#31144 Gbp-Pq: Name pyarrow_feather.patch
1 parent e1d0fb9 commit c5fdf9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/tests/io/test_common.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_iterator(self):
129129
(pd.read_csv, "os", FileNotFoundError, "csv"),
130130
(pd.read_fwf, "os", FileNotFoundError, "txt"),
131131
(pd.read_excel, "xlrd", FileNotFoundError, "xlsx"),
132-
(pd.read_feather, "feather", Exception, "feather"),
132+
(pd.read_feather, "pyarrow", Exception, "feather"),
133133
(pd.read_hdf, "tables", FileNotFoundError, "h5"),
134134
(pd.read_stata, "os", FileNotFoundError, "dta"),
135135
(pd.read_sas, "os", FileNotFoundError, "sas7bdat"),
@@ -165,7 +165,7 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
165165
(pd.read_table, "os", FileNotFoundError, "csv"),
166166
(pd.read_fwf, "os", FileNotFoundError, "txt"),
167167
(pd.read_excel, "xlrd", FileNotFoundError, "xlsx"),
168-
(pd.read_feather, "feather", Exception, "feather"),
168+
(pd.read_feather, "pyarrow", Exception, "feather"),
169169
(pd.read_hdf, "tables", FileNotFoundError, "h5"),
170170
(pd.read_stata, "os", FileNotFoundError, "dta"),
171171
(pd.read_sas, "os", FileNotFoundError, "sas7bdat"),
@@ -212,7 +212,7 @@ def test_read_expands_user_home_dir(
212212
(pd.read_excel, "xlrd", ("io", "data", "excel", "test1.xlsx")),
213213
(
214214
pd.read_feather,
215-
"feather",
215+
"pyarrow",
216216
("io", "data", "feather", "feather-0_3_1.feather"),
217217
),
218218
pytest.param(
@@ -249,7 +249,7 @@ def test_read_fspath_all(self, reader, module, path, datapath):
249249
[
250250
("to_csv", {}, "os"),
251251
("to_excel", {"engine": "xlwt"}, "xlwt"),
252-
("to_feather", {}, "feather"),
252+
("to_feather", {}, "pyarrow"),
253253
("to_html", {}, "os"),
254254
("to_json", {}, "os"),
255255
("to_latex", {}, "os"),

0 commit comments

Comments
 (0)