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