Skip to content

Commit

Permalink
Backport PR #58658: CI/TST: Don't xfail test_api_read_sql_duplicate_c…
Browse files Browse the repository at this point in the history
…olumns for pyarrow=16 and sqlite
  • Loading branch information
mroeschke authored and meeseeksmachine committed May 9, 2024
1 parent d5e362e commit 9f9070d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2320,9 +2320,15 @@ def test_api_escaped_table_name(conn, request):
def test_api_read_sql_duplicate_columns(conn, request):
# GH#53117
if "adbc" in conn:
request.node.add_marker(
pytest.mark.xfail(reason="pyarrow->pandas throws ValueError", strict=True)
)
pa = pytest.importorskip("pyarrow")
if not (
Version(pa.__version__) >= Version("16.0") and conn == "sqlite_adbc_conn"
):
request.node.add_marker(
pytest.mark.xfail(
reason="pyarrow->pandas throws ValueError", strict=True
)
)
conn = request.getfixturevalue(conn)
if sql.has_table("test_table", conn):
with sql.SQLDatabase(conn, need_transaction=True) as pandasSQL:
Expand Down

0 comments on commit 9f9070d

Please sign in to comment.