Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions pandas/tests/api/test_types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
import pytest

from pandas.api import types
from pandas.util import testing as tm

Expand Down Expand Up @@ -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:
Expand Down