diff --git a/pandas/tests/frame/methods/test_to_records.py b/pandas/tests/frame/methods/test_to_records.py index ba8fe25401e8c..2c96cf291c154 100644 --- a/pandas/tests/frame/methods/test_to_records.py +++ b/pandas/tests/frame/methods/test_to_records.py @@ -3,8 +3,6 @@ import numpy as np import pytest -from pandas.compat import is_numpy_dev - from pandas import ( CategoricalDtype, DataFrame, @@ -173,28 +171,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", "