|
3 | 3 | import numpy as np
|
4 | 4 | import pytest
|
5 | 5 |
|
| 6 | +from pandas.compat.numpy import is_numpy_dev |
| 7 | + |
6 | 8 | from pandas import (
|
7 | 9 | CategoricalDtype,
|
8 | 10 | DataFrame,
|
@@ -162,20 +164,28 @@ def test_to_records_with_categorical(self):
|
162 | 164 | ),
|
163 | 165 | ),
|
164 | 166 | # Pass in a type instance.
|
165 |
| - ( |
| 167 | + pytest.param( |
166 | 168 | {"column_dtypes": str},
|
167 | 169 | np.rec.array(
|
168 | 170 | [("0", "1", "0.2", "a"), ("1", "2", "1.5", "bc")],
|
169 | 171 | dtype=[("index", "<i8"), ("A", "<U"), ("B", "<U"), ("C", "<U")],
|
170 | 172 | ),
|
| 173 | + marks=pytest.mark.xfail( |
| 174 | + is_numpy_dev, |
| 175 | + reason="https://github.com/numpy/numpy/issues/19078", |
| 176 | + ), |
171 | 177 | ),
|
172 | 178 | # Pass in a dtype instance.
|
173 |
| - ( |
| 179 | + pytest.param( |
174 | 180 | {"column_dtypes": np.dtype("unicode")},
|
175 | 181 | np.rec.array(
|
176 | 182 | [("0", "1", "0.2", "a"), ("1", "2", "1.5", "bc")],
|
177 | 183 | dtype=[("index", "<i8"), ("A", "<U"), ("B", "<U"), ("C", "<U")],
|
178 | 184 | ),
|
| 185 | + marks=pytest.mark.xfail( |
| 186 | + is_numpy_dev, |
| 187 | + reason="https://github.com/numpy/numpy/issues/19078", |
| 188 | + ), |
179 | 189 | ),
|
180 | 190 | # Pass in a dictionary (name-only).
|
181 | 191 | (
|
|
0 commit comments