We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae7965 commit 0d29776Copy full SHA for 0d29776
pandas/tests/io/test_sql.py
@@ -2300,9 +2300,15 @@ def test_api_escaped_table_name(conn, request):
2300
def test_api_read_sql_duplicate_columns(conn, request):
2301
# GH#53117
2302
if "adbc" in conn:
2303
- request.node.add_marker(
2304
- pytest.mark.xfail(reason="pyarrow->pandas throws ValueError", strict=True)
2305
- )
+ pa = pytest.importorskip("pyarrow")
+ if not (
+ 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
2312
conn = request.getfixturevalue(conn)
2313
if sql.has_table("test_table", conn):
2314
with sql.SQLDatabase(conn, need_transaction=True) as pandasSQL:
0 commit comments