Skip to content

Commit bf9d41c

Browse files
authored
CLN: Remove dead code in api/test_types.py (#24516)
Follow-up to gh-19769.
1 parent 449d665 commit bf9d41c

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

pandas/tests/api/test_types.py

-15
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
import pytest
3-
42
from pandas.api import types
53
from pandas.util import testing as tm
64

@@ -35,19 +33,6 @@ def test_types(self):
3533

3634
self.check(types, self.allowed + self.dtypes + self.deprecated)
3735

38-
def check_deprecation(self, fold, fnew):
39-
with tm.assert_produces_warning(DeprecationWarning):
40-
try:
41-
result = fold('foo')
42-
expected = fnew('foo')
43-
assert result == expected
44-
except TypeError:
45-
with pytest.raises(TypeError):
46-
fnew('foo')
47-
except AttributeError:
48-
with pytest.raises(AttributeError):
49-
fnew('foo')
50-
5136
def test_deprecated_from_api_types(self):
5237

5338
for t in self.deprecated:

0 commit comments

Comments
 (0)