antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
16.68k stars 3.23k forks source link

[Python3] Replace deprecated `assertEquals()` to fix py3.12 compat #4593

Open mgorny opened 2 months ago

mgorny commented 2 months ago

Replace the assertEquals() method calls in the Python3 test suite with the modern assertEqual(). The former was removed in Python 3.12, and therefore is causing the tests to fail. The latter is available in all versions of Python 3.