Skip to content

Commit 326d738

Browse files
gfyoungAnkurDedania
authored andcommitted
MAINT: Remove testing.assert_isinstance (pandas-dev#15652)
Deprecated in 0.17.0 xref pandas-devgh-10458
1 parent eb9a201 commit 326d738

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

pandas/tests/test_testing.py

-3
Original file line numberDiff line numberDiff line change
@@ -765,9 +765,6 @@ def test_warning(self):
765765
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
766766
self.assertNotAlmostEquals(1, 2)
767767

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

772769
class TestLocale(tm.TestCase):
773770

pandas/util/testing.py

-5
Original file line numberDiff line numberDiff line change
@@ -991,11 +991,6 @@ def assertIsInstance(obj, cls, msg=''):
991991
raise AssertionError(err_msg.format(msg, cls, type(obj)))
992992

993993

994-
def assert_isinstance(obj, class_type_or_tuple, msg=''):
995-
return deprecate('assert_isinstance', assertIsInstance)(
996-
obj, class_type_or_tuple, msg=msg)
997-
998-
999994
def assertNotIsInstance(obj, cls, msg=''):
1000995
"""Test that obj is not an instance of cls
1001996
(which can be a class or a tuple of classes,

0 commit comments

Comments
 (0)