Skip to content
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

Backport PR #41987: TST: Un-xfail tests on numpy-dev #42069

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
14 changes: 2 additions & 12 deletions pandas/tests/frame/methods/test_to_records.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import numpy as np
import pytest

from pandas.compat.numpy import is_numpy_dev

from pandas import (
CategoricalDtype,
DataFrame,
Expand Down Expand Up @@ -164,28 +162,20 @@ def test_to_records_with_categorical(self):
),
),
# Pass in a type instance.
pytest.param(
(
{"column_dtypes": str},
np.rec.array(
[("0", "1", "0.2", "a"), ("1", "2", "1.5", "bc")],
dtype=[("index", "<i8"), ("A", "<U"), ("B", "<U"), ("C", "<U")],
),
marks=pytest.mark.xfail(
is_numpy_dev,
reason="https://github.com/numpy/numpy/issues/19078",
),
),
# Pass in a dtype instance.
pytest.param(
(
{"column_dtypes": np.dtype("unicode")},
np.rec.array(
[("0", "1", "0.2", "a"), ("1", "2", "1.5", "bc")],
dtype=[("index", "<i8"), ("A", "<U"), ("B", "<U"), ("C", "<U")],
),
marks=pytest.mark.xfail(
is_numpy_dev,
reason="https://github.com/numpy/numpy/issues/19078",
),
),
# Pass in a dictionary (name-only).
(
Expand Down