Skip to content

Commit d8e1a6e

Browse files
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
1 parent a22e05a commit d8e1a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _test(self, test):
6767
# if there is no 'expected' we only verify that applying the patch
6868
# does not raise an exception
6969
if 'expected' in test:
70-
self.assertEquals(res, test['expected'], test.get('comment', ''))
70+
self.assertEqual(res, test['expected'], test.get('comment', ''))
7171

7272

7373
def make_test_case(tests):

0 commit comments

Comments
 (0)