Skip to content

Commit a8b5c5d

Browse files
Backport PR #58693 on branch 2.2.x (TST: Fix CI failures (don't xfail postgresql / don't xfail for pyarrow=16)) (#58709)
Backport PR #58693: TST: Fix CI failures (don't xfail postgresql / don't xfail for pyarrow=16) Co-authored-by: Abdulaziz Aloqeely <[email protected]>
1 parent 967e1c7 commit a8b5c5d

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

pandas/tests/io/parser/test_multi_thread.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import pandas as pd
1313
from pandas import DataFrame
1414
import pandas._testing as tm
15+
from pandas.util.version import Version
1516

1617
xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfail")
1718

@@ -23,10 +24,16 @@
2324
]
2425

2526

26-
@xfail_pyarrow # ValueError: Found non-unique column index
27-
def test_multi_thread_string_io_read_csv(all_parsers):
27+
@pytest.mark.filterwarnings("ignore:Passing a BlockManager:DeprecationWarning")
28+
def test_multi_thread_string_io_read_csv(all_parsers, request):
2829
# see gh-11786
2930
parser = all_parsers
31+
if parser.engine == "pyarrow":
32+
pa = pytest.importorskip("pyarrow")
33+
if Version(pa.__version__) < Version("16.0"):
34+
request.applymarker(
35+
pytest.mark.xfail(reason="# ValueError: Found non-unique column index")
36+
)
3037
max_row_range = 100
3138
num_files = 10
3239

pandas/tests/io/test_sql.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,8 @@ def test_api_read_sql_duplicate_columns(conn, request):
23222322
if "adbc" in conn:
23232323
pa = pytest.importorskip("pyarrow")
23242324
if not (
2325-
Version(pa.__version__) >= Version("16.0") and conn == "sqlite_adbc_conn"
2325+
Version(pa.__version__) >= Version("16.0")
2326+
and conn in ["sqlite_adbc_conn", "postgresql_adbc_conn"]
23262327
):
23272328
request.node.add_marker(
23282329
pytest.mark.xfail(

0 commit comments

Comments
 (0)