We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 449d665 commit bf9d41cCopy full SHA for bf9d41c
pandas/tests/api/test_types.py
@@ -1,6 +1,4 @@
1
# -*- coding: utf-8 -*-
2
-import pytest
3
-
4
from pandas.api import types
5
from pandas.util import testing as tm
6
@@ -35,19 +33,6 @@ def test_types(self):
35
33
36
34
self.check(types, self.allowed + self.dtypes + self.deprecated)
37
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
50
51
def test_deprecated_from_api_types(self):
52
53
for t in self.deprecated:
0 commit comments