Skip to content

Commit

Permalink
CI/TST: Don't xfail test_api_read_sql_duplicate_columns for pyarrow=1…
Browse files Browse the repository at this point in the history
…6 and sqlite (#58658)

CI/TST: Don't xfail test_api_read_sql_duplicate_columns for pyarrow=16
  • Loading branch information
mroeschke committed May 9, 2024
1 parent bae7965 commit 0d29776
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions pandas/tests/io/test_sql.py
Expand Up @@ -2300,9 +2300,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 0d29776

Please sign in to comment.