From d5d6ad7eec97b99413173bd51304ad349c6acf67 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Mon, 31 Dec 2018 10:02:38 -0800 Subject: [PATCH] CLN: Remove dead code in api/test_types.py Follow-up to gh-19769. --- pandas/tests/api/test_types.py | 15 --------------- 1 file changed, 15 deletions(-) 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: