Skip to content

Commit 0d29776

Browse files
authored
CI/TST: Don't xfail test_api_read_sql_duplicate_columns for pyarrow=16 and sqlite (#58658)
CI/TST: Don't xfail test_api_read_sql_duplicate_columns for pyarrow=16
1 parent bae7965 commit 0d29776

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pandas/tests/io/test_sql.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -2300,9 +2300,15 @@ def test_api_escaped_table_name(conn, request):
23002300
def test_api_read_sql_duplicate_columns(conn, request):
23012301
# GH#53117
23022302
if "adbc" in conn:
2303-
request.node.add_marker(
2304-
pytest.mark.xfail(reason="pyarrow->pandas throws ValueError", strict=True)
2305-
)
2303+
pa = pytest.importorskip("pyarrow")
2304+
if not (
2305+
Version(pa.__version__) >= Version("16.0") and conn == "sqlite_adbc_conn"
2306+
):
2307+
request.node.add_marker(
2308+
pytest.mark.xfail(
2309+
reason="pyarrow->pandas throws ValueError", strict=True
2310+
)
2311+
)
23062312
conn = request.getfixturevalue(conn)
23072313
if sql.has_table("test_table", conn):
23082314
with sql.SQLDatabase(conn, need_transaction=True) as pandasSQL:

0 commit comments

Comments
 (0)