Skip to content

Refresh patch to use assertEqual instead of assertEquals, as the latter is a deprecated alias.

Dear Maintainer,

In Ubuntu, we got the following error causing a FTBFS due to the use of assertEquals (deprecated alias in python 3.11 [1]):

test_entetes (wxgeometrie.tests.test_entetes.Test.test_entetes) On teste que les fichiers soient bien tous declarés en utf-8. ... ok

====================================================================== ERROR: test_equation_formatee (wxgeometrie.geolib.tests.test_lignes.GeolibTest.test_equation_formatee)

Traceback (most recent call last): File "/<>/wxgeometrie/geolib/tests/test_lignes.py", line 195, in test_equation_formatee self.assertEquals(Droite('y=x').equation_formatee, '-x + y = 0') ^^^^^^^^^^^^^^^^^ AttributeError: 'GeolibTest' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

Nowadays, in Debian is only a warning [2]:

test_equation_formatee (wxgeometrie.geolib.tests.test_lignes.GeolibTest.test_equation_formatee) ... /<>/wxgeometrie/geolib/tests/test_lignes.py:195: DeprecationWarning: Please use assertEqual instead. self.assertEquals(Droite('y=x').equation_formatee, '-x + y = 0') ok

I refreshed the patch named tools_unittest.patch to resolve this, which I'm forwarding to you for your consideration.

[1] https://docs.python.org/3.11/library/unittest.html#deprecated-aliases [2] https://buildd.debian.org/status/fetch.php?pkg=geophar&arch=all&ver=18.10%2Bdfsg1-3&stamp=1708951533&raw=0

Merge request reports

Loading