Skip to content

TST/CI: xfail test_frame_setitem_dask_array_into_new_col for numpy>2.1 #60873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pandas/tests/test_downstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
TimedeltaIndex,
)
import pandas._testing as tm
from pandas.util.version import Version


@pytest.fixture
Expand Down Expand Up @@ -222,15 +223,22 @@ def test_missing_required_dependency():
assert name in output


def test_frame_setitem_dask_array_into_new_col():
def test_frame_setitem_dask_array_into_new_col(request):
# GH#47128

# dask sets "compute.use_numexpr" to False, so catch the current value
# and ensure to reset it afterwards to avoid impacting other tests
olduse = pd.get_option("compute.use_numexpr")

try:
dask = pytest.importorskip("dask")
da = pytest.importorskip("dask.array")
if Version(dask.__version__) <= Version("2025.1.0") and Version(
np.__version__
) >= Version("2.1"):
request.applymarker(
pytest.mark.xfail(reason="loc.__setitem__ incorrectly mutated column c")
)

dda = da.array([1, 2])
df = DataFrame({"a": ["a", "b"]})
Expand Down
Loading