diff --git a/pandas/tests/arrays/categorical/test_warnings.py b/pandas/tests/arrays/categorical/test_warnings.py index 23d00585f950e..4a37d5097648f 100644 --- a/pandas/tests/arrays/categorical/test_warnings.py +++ b/pandas/tests/arrays/categorical/test_warnings.py @@ -18,14 +18,14 @@ def test_tab_complete_warning(self, ip): with provisionalcompleter('ignore'): list(ip.Completer.completions('c.', 1)) - def test_CategoricalAccessor_categorical_deprecation(object): + def test_CategoricalAccessor_categorical_deprecation(self): with tm.assert_produces_warning(FutureWarning): pd.Series(['a', 'b'], dtype='category').cat.categorical - def test_CategoricalAccessor_name_deprecation(object): + def test_CategoricalAccessor_name_deprecation(self): with tm.assert_produces_warning(FutureWarning): pd.Series(['a', 'b'], dtype='category').cat.name - def test_CategoricalAccessor_index_deprecation(object): + def test_CategoricalAccessor_index_deprecation(self): with tm.assert_produces_warning(FutureWarning): pd.Series(['a', 'b'], dtype='category').cat.index