Skip to content

Commit

Permalink
Replace deprecated assertEquals with assertEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
drewejohnson committed Feb 5, 2025
1 parent 9f3a86b commit 3c5bab2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def demoFuture(x, val=5):
with catch_warnings(record=True) as record:
self.assertEqual(7, demoFuture(2))
self.assertEqual(7, demoFuture(2, 5))
self.assertEquals(len(record), 2,
'Did not catch two warnings::willChange')
self.assertEqual(len(record), 2,
"Did not catch two warnings::willChange")

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


class LoggingTester(TestCaseWithLogCapture):
Expand Down

0 comments on commit 3c5bab2

Please sign in to comment.