Skip to content

Commit

Permalink
Fix tests for Python 3.12 (#162)
Browse files Browse the repository at this point in the history
unittest.TestCase.assertEquals has been removed in Python 3.12;
unittest.TestCase.assertEqual should be used instead[1].

[1] https://docs.python.org/3/whatsnew/3.12.html#id3
  • Loading branch information
CyrilRoelandteNovance authored Aug 5, 2024
1 parent a22e05a commit d8e1a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _test(self, test):
# if there is no 'expected' we only verify that applying the patch
# does not raise an exception
if 'expected' in test:
self.assertEquals(res, test['expected'], test.get('comment', ''))
self.assertEqual(res, test['expected'], test.get('comment', ''))


def make_test_case(tests):
Expand Down

0 comments on commit d8e1a6e

Please sign in to comment.