Skip to content

CLN: Remove dead code in api/test_types.py #24516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 31, 2018
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