diff --git a/pandas/tests/api/test_types.py b/pandas/tests/api/test_types.py index 9a7e42cb9c4e2..0a81557005477 100644 --- a/pandas/tests/api/test_types.py +++ b/pandas/tests/api/test_types.py @@ -1,6 +1,4 @@ # -*- coding: utf-8 -*- -import pytest - from pandas.api import types from pandas.util import testing as tm @@ -35,19 +33,6 @@ def test_types(self): self.check(types, self.allowed + self.dtypes + self.deprecated) - def check_deprecation(self, fold, fnew): - with tm.assert_produces_warning(DeprecationWarning): - try: - result = fold('foo') - expected = fnew('foo') - assert result == expected - except TypeError: - with pytest.raises(TypeError): - fnew('foo') - except AttributeError: - with pytest.raises(AttributeError): - fnew('foo') - def test_deprecated_from_api_types(self): for t in self.deprecated: