Skip to content

Commit a5ac94e

Browse files
GH-35321: [Python][CI] Skip extension type test failing with pandas 2.0.1 (#35324)
This test fails presumably because of a regression or change in behaviour in pandas 2.0.1, therefore skipping the test for now. * Closes: #35321 Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
1 parent 64bed71 commit a5ac94e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/pyarrow/tests/test_extension_type.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,10 @@ def test_extension_to_pandas_storage_type(registered_period_type):
12961296
assert result["ext"].dtype == pandas_dtype
12971297

12981298
import pandas as pd
1299-
if Version(pd.__version__) > Version("2.0.0"):
1300-
1299+
if (
1300+
Version(pd.__version__) > Version("2.0.0") and
1301+
Version(pd.__version__) != Version("2.0.1")
1302+
):
13011303
# Check the usage of types_mapper
13021304
result = table.to_pandas(types_mapper=pd.ArrowDtype)
13031305
assert isinstance(result["ext"].dtype, pd.ArrowDtype)

0 commit comments

Comments
 (0)