Skip to content

Commit fce1e3e

Browse files
committed
MAINT: Remove all deprecated aliases from TestCase
1 parent 5f0acc5 commit fce1e3e

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

pandas/tests/test_testing.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -746,26 +746,6 @@ def test_RNGContext(self):
746746
self.assertEqual(np.random.randn(), expected0)
747747

748748

749-
class TestDeprecatedTests(tm.TestCase):
750-
751-
def test_warning(self):
752-
753-
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
754-
self.assertEquals(1, 1)
755-
756-
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
757-
self.assertNotEquals(1, 2)
758-
759-
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
760-
self.assert_(True)
761-
762-
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
763-
self.assertAlmostEquals(1.0, 1.0000000001)
764-
765-
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
766-
self.assertNotAlmostEquals(1, 2)
767-
768-
769749
class TestLocale(tm.TestCase):
770750

771751
def test_locale(self):

pandas/util/testing.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,6 @@ def setUpClass(cls):
9292
def tearDownClass(cls):
9393
pass
9494

95-
# https://docs.python.org/3/library/unittest.html#deprecated-aliases
96-
def assertEquals(self, *args, **kwargs):
97-
return deprecate('assertEquals',
98-
self.assertEqual)(*args, **kwargs)
99-
100-
def assertNotEquals(self, *args, **kwargs):
101-
return deprecate('assertNotEquals',
102-
self.assertNotEqual)(*args, **kwargs)
103-
104-
def assert_(self, *args, **kwargs):
105-
return deprecate('assert_',
106-
self.assertTrue)(*args, **kwargs)
107-
108-
def assertAlmostEquals(self, *args, **kwargs):
109-
return deprecate('assertAlmostEquals',
110-
self.assertAlmostEqual)(*args, **kwargs)
111-
112-
def assertNotAlmostEquals(self, *args, **kwargs):
113-
return deprecate('assertNotAlmostEquals',
114-
self.assertNotAlmostEqual)(*args, **kwargs)
115-
11695

11796
def reset_display_options():
11897
"""

0 commit comments

Comments
 (0)