Skip to content

Commit

Permalink
Backport PR #41987: TST: Un-xfail tests on numpy-dev (#42069)
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Li <[email protected]>
  • Loading branch information
simonjayhawkins and lithomas1 authored Jun 17, 2021
1 parent fd81954 commit 14d514b
Showing 1 changed file with 2 additions and 12 deletions.
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

0 comments on commit 14d514b

Please sign in to comment.