Skip to content

Commit

Permalink
MAINT: Remove testing.assert_isinstance (pandas-dev#15652)
Browse files Browse the repository at this point in the history
Deprecated in 0.17.0

xref pandas-devgh-10458
  • Loading branch information
gfyoung authored and AnkurDedania committed Mar 21, 2017
1 parent eb9a201 commit 326d738
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions pandas/tests/test_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,9 +765,6 @@ def test_warning(self):
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
self.assertNotAlmostEquals(1, 2)

with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
tm.assert_isinstance(Series([1, 2]), Series, msg='xxx')


class TestLocale(tm.TestCase):

Expand Down
5 changes: 0 additions & 5 deletions pandas/util/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -991,11 +991,6 @@ def assertIsInstance(obj, cls, msg=''):
raise AssertionError(err_msg.format(msg, cls, type(obj)))


def assert_isinstance(obj, class_type_or_tuple, msg=''):
return deprecate('assert_isinstance', assertIsInstance)(
obj, class_type_or_tuple, msg=msg)


def assertNotIsInstance(obj, cls, msg=''):
"""Test that obj is not an instance of cls
(which can be a class or a tuple of classes,
Expand Down

0 comments on commit 326d738

Please sign in to comment.