From d8e1a6e244728c04229d601bc9a384d9b034c603 Mon Sep 17 00:00:00 2001 From: CyrilRoelandteNovance Date: Mon, 5 Aug 2024 22:10:52 +0200 Subject: [PATCH] Fix tests for Python 3.12 (#162) 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 --- ext_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext_tests.py b/ext_tests.py index 1fd8d8f..59a36d2 100755 --- a/ext_tests.py +++ b/ext_tests.py @@ -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):