Skip to content

Commit 967e1c7

Browse files
Backport PR #58658 on branch 2.2.x (CI/TST: Don't xfail test_api_read_sql_duplicate_columns for pyarrow=16 and sqlite) (#58660)
Backport PR #58658: CI/TST: Don't xfail test_api_read_sql_duplicate_columns for pyarrow=16 and sqlite Co-authored-by: Matthew Roeschke <[email protected]>
1 parent d5e362e commit 967e1c7

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
@@ -2320,9 +2320,15 @@ def test_api_escaped_table_name(conn, request):
23202320
def test_api_read_sql_duplicate_columns(conn, request):
23212321
# GH#53117
23222322
if "adbc" in conn:
2323-
request.node.add_marker(
2324-
pytest.mark.xfail(reason="pyarrow->pandas throws ValueError", strict=True)
2325-
)
2323+
pa = pytest.importorskip("pyarrow")
2324+
if not (
2325+
Version(pa.__version__) >= Version("16.0") and conn == "sqlite_adbc_conn"
2326+
):
2327+
request.node.add_marker(
2328+
pytest.mark.xfail(
2329+
reason="pyarrow->pandas throws ValueError", strict=True
2330+
)
2331+
)
23262332
conn = request.getfixturevalue(conn)
23272333
if sql.has_table("test_table", conn):
23282334
with sql.SQLDatabase(conn, need_transaction=True) as pandasSQL:

0 commit comments

Comments
 (0)