Skip to content

Commit 3c5bab2

Browse files
committed
Replace deprecated assertEquals with assertEqual
1 parent 9f3a86b commit 3c5bab2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_messages.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def demoFuture(x, val=5):
3232
with catch_warnings(record=True) as record:
3333
self.assertEqual(7, demoFuture(2))
3434
self.assertEqual(7, demoFuture(2, 5))
35-
self.assertEquals(len(record), 2,
36-
'Did not catch two warnings::willChange')
35+
self.assertEqual(len(record), 2,
36+
"Did not catch two warnings::willChange")
3737

3838
def test_deprecatedDecorator(self):
3939
"""Verify that the deprecated decorator doesn't break things"""
@@ -45,8 +45,8 @@ def demoFunction(x, val=5):
4545
with catch_warnings(record=True) as record:
4646
self.assertEqual(7, demoFunction(2))
4747
self.assertEqual(7, demoFunction(2, 5))
48-
self.assertEquals(len(record), 2,
49-
'Did not catch two warnings::deprecation')
48+
self.assertEqual(len(record), 2,
49+
"Did not catch two warnings::deprecation")
5050

5151

5252
class LoggingTester(TestCaseWithLogCapture):

0 commit comments

Comments
 (0)