From: Debian Science Team Date: Thu, 7 May 2020 10:57:06 +0000 (+0100) Subject: Skip feather tests if pyarrow not available X-Git-Tag: archive/raspbian/0.25.3+dfsg2-2+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=dacc64d3989c15e22376409750801a5c5ab85332;p=pandas.git 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 Forwarded: no Gbp-Pq: Name pyarrow_feather.patch --- diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 6a82fed8..fe852a12 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -138,7 +138,7 @@ bar2,12,13,14,15 (pd.read_csv, "os", FileNotFoundError, "csv"), (pd.read_fwf, "os", FileNotFoundError, "txt"), (pd.read_excel, "xlrd", FileNotFoundError, "xlsx"), - (pd.read_feather, "feather", Exception, "feather"), + (pd.read_feather, "pyarrow", Exception, "feather"), (pd.read_hdf, "tables", FileNotFoundError, "h5"), (pd.read_stata, "os", FileNotFoundError, "dta"), (pd.read_sas, "os", FileNotFoundError, "sas7bdat"), @@ -173,7 +173,7 @@ bar2,12,13,14,15 (pd.read_table, "os", FileNotFoundError, "csv"), (pd.read_fwf, "os", FileNotFoundError, "txt"), (pd.read_excel, "xlrd", FileNotFoundError, "xlsx"), - (pd.read_feather, "feather", Exception, "feather"), + (pd.read_feather, "pyarrow", Exception, "feather"), (pd.read_hdf, "tables", FileNotFoundError, "h5"), (pd.read_stata, "os", FileNotFoundError, "dta"), (pd.read_sas, "os", FileNotFoundError, "sas7bdat"), @@ -213,7 +213,7 @@ bar2,12,13,14,15 (pd.read_table, "os", ("io", "data", "iris.csv")), (pd.read_fwf, "os", ("io", "data", "fixed_width_format.txt")), (pd.read_excel, "xlrd", ("io", "data", "test1.xlsx")), - (pd.read_feather, "feather", ("io", "data", "feather-0_3_1.feather")), + (pd.read_feather, "pyarrow", ("io", "data", "feather-0_3_1.feather")), pytest.param( pd.read_hdf, "tables", @@ -245,7 +245,7 @@ bar2,12,13,14,15 [ ("to_csv", {}, "os"), ("to_excel", {"engine": "xlwt"}, "xlwt"), - ("to_feather", {}, "feather"), + ("to_feather", {}, "pyarrow"), ("to_html", {}, "os"), ("to_json", {}, "os"), ("to_latex", {}, "os"),