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