Skip to content

Commit

Permalink
Backport PR pandas-dev#58693: TST: Fix CI failures (don't xfail postg…
Browse files Browse the repository at this point in the history
…resql / don't xfail for pyarrow=16)
  • Loading branch information
Aloqeely authored and meeseeksmachine committed May 13, 2024
1 parent 967e1c7 commit 2a9dc9f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
11 changes: 9 additions & 2 deletions pandas/tests/io/parser/test_multi_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import pandas as pd
from pandas import DataFrame
import pandas._testing as tm
from pandas.util.version import Version

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

Expand All @@ -23,10 +24,16 @@
]


@xfail_pyarrow # ValueError: Found non-unique column index
def test_multi_thread_string_io_read_csv(all_parsers):
@pytest.mark.filterwarnings("ignore:Passing a BlockManager:DeprecationWarning")
def test_multi_thread_string_io_read_csv(all_parsers, request):
# see gh-11786
parser = all_parsers
if parser.engine == "pyarrow":
pa = pytest.importorskip("pyarrow")
if Version(pa.__version__) < Version("16.0"):
request.applymarker(
pytest.mark.xfail(reason="# ValueError: Found non-unique column index")
)
max_row_range = 100
num_files = 10

Expand Down
3 changes: 2 additions & 1 deletion pandas/tests/io/test_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2322,7 +2322,8 @@ def test_api_read_sql_duplicate_columns(conn, request):
if "adbc" in conn:
pa = pytest.importorskip("pyarrow")
if not (
Version(pa.__version__) >= Version("16.0") and conn == "sqlite_adbc_conn"
Version(pa.__version__) >= Version("16.0")
and conn in ["sqlite_adbc_conn", "postgresql_adbc_conn"]
):
request.node.add_marker(
pytest.mark.xfail(
Expand Down

0 comments on commit 2a9dc9f

Please sign in to comment.