Skip to content

Commit 5ee4dac

Browse files
authored
CLN: Remove unsupported skips of pyarrow versions (pandas-dev#50208)
1 parent d27f47b commit 5ee4dac

File tree

7 files changed

+9
-11
lines changed

7 files changed

+9
-11
lines changed

pandas/tests/extension/base/casting.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def test_astype_str(self, data):
5151
"nullable_string_dtype",
5252
[
5353
"string[python]",
54-
pytest.param(
55-
"string[pyarrow]", marks=td.skip_if_no("pyarrow", min_version="1.0.0")
56-
),
54+
pytest.param("string[pyarrow]", marks=td.skip_if_no("pyarrow")),
5755
],
5856
)
5957
def test_astype_string(self, data, nullable_string_dtype):

pandas/tests/frame/methods/test_astype.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ def test_astype_empty_dtype_dict(self):
697697
pytest.param(
698698
["x", "y", "z"],
699699
"string[pyarrow]",
700-
marks=td.skip_if_no("pyarrow", min_version="1.0.0"),
700+
marks=td.skip_if_no("pyarrow"),
701701
),
702702
(["x", "y", "z"], "category"),
703703
(3 * [Timestamp("2020-01-01", tz="UTC")], None),

pandas/tests/io/test_common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def test_bytesiowrapper_returns_correct_bytes(self):
148148
assert result == data.encode("utf-8")
149149

150150
# Test that pyarrow can handle a file opened with get_handle
151-
@td.skip_if_no("pyarrow", min_version="0.15.0")
151+
@td.skip_if_no("pyarrow")
152152
def test_get_handle_pyarrow_compat(self):
153153
from pyarrow import csv
154154

pandas/tests/io/test_fsspec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test_to_parquet_new_file(cleared_fs, df1):
150150
)
151151

152152

153-
@td.skip_if_no("pyarrow", min_version="2")
153+
@td.skip_if_no("pyarrow")
154154
def test_arrowparquet_options(fsspectest):
155155
"""Regression test for writing to a not-yet-existent GCS Parquet file."""
156156
df = DataFrame({"a": [0]})

pandas/tests/io/test_parquet.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -926,14 +926,14 @@ def test_additional_extension_arrays(self, pa):
926926
df = pd.DataFrame({"a": pd.Series([1, 2, 3, None], dtype="Int64")})
927927
check_round_trip(df, pa)
928928

929-
@td.skip_if_no("pyarrow", min_version="1.0.0")
929+
@td.skip_if_no("pyarrow")
930930
def test_pyarrow_backed_string_array(self, pa, string_storage):
931931
# test ArrowStringArray supported through the __arrow_array__ protocol
932932
df = pd.DataFrame({"a": pd.Series(["a", None, "c"], dtype="string[pyarrow]")})
933933
with pd.option_context("string_storage", string_storage):
934934
check_round_trip(df, pa, expected=df.astype(f"string[{string_storage}]"))
935935

936-
@td.skip_if_no("pyarrow", min_version="2.0.0")
936+
@td.skip_if_no("pyarrow")
937937
def test_additional_extension_types(self, pa):
938938
# test additional ExtensionArrays that are supported through the
939939
# __arrow_array__ protocol + by defining a custom ExtensionType
@@ -985,7 +985,7 @@ def test_timezone_aware_index(self, request, pa, timezone_aware_date_list):
985985
# this use-case sets the resolution to 1 minute
986986
check_round_trip(df, pa, check_dtype=False)
987987

988-
@td.skip_if_no("pyarrow", min_version="1.0.0")
988+
@td.skip_if_no("pyarrow")
989989
def test_filter_row_groups(self, pa):
990990
# https://github.com/pandas-dev/pandas/issues/26551
991991
df = pd.DataFrame({"a": list(range(0, 3))})

pandas/tests/series/methods/test_astype.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def test_td64_series_astype_object(self):
281281
pytest.param(
282282
["x", "y", "z"],
283283
"string[pyarrow]",
284-
marks=td.skip_if_no("pyarrow", min_version="1.0.0"),
284+
marks=td.skip_if_no("pyarrow"),
285285
),
286286
(["x", "y", "z"], "category"),
287287
(3 * [Timestamp("2020-01-01", tz="UTC")], None),

pandas/tests/series/methods/test_update.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def test_update_from_non_series(self, series, other, expected):
9696
[None, "b"],
9797
["a", "b"],
9898
"string[pyarrow]",
99-
marks=td.skip_if_no("pyarrow", min_version="1.0.0"),
99+
marks=td.skip_if_no("pyarrow"),
100100
),
101101
([1, None], [None, 2], [1, 2], "Int64"),
102102
([True, None], [None, False], [True, False], "boolean"),

0 commit comments

Comments
 (0)