GNOME Bugzilla – Bug 738778
DeprecationWarnings in test suite
Last modified: 2021-07-05 13:26:50 UTC
Tests of Python bindings of libxml2 print some DeprecationWarnings. make[1]: Entering directory '/tmp/libxml2-2.9.2/python/tests' ## running Python regression tests /tmp/libxml2-2.9.2/python/tests/tstLastError.py:43: DeprecationWarning: Please use assertEqual instead. self.failUnlessEqual(domain,e.domain()) /tmp/libxml2-2.9.2/python/tests/tstLastError.py:44: DeprecationWarning: Please use assertEqual instead. self.failUnlessEqual(code,e.code()) /tmp/libxml2-2.9.2/python/tests/tstLastError.py:45: DeprecationWarning: Please use assertEqual instead. self.failUnlessEqual(message,e.message()) /tmp/libxml2-2.9.2/python/tests/tstLastError.py:46: DeprecationWarning: Please use assertEqual instead. self.failUnlessEqual(level,e.level()) /tmp/libxml2-2.9.2/python/tests/tstLastError.py:47: DeprecationWarning: Please use assertEqual instead. self.failUnlessEqual(file,e.file()) /tmp/libxml2-2.9.2/python/tests/tstLastError.py:48: DeprecationWarning: Please use assertEqual instead. self.failUnlessEqual(line,e.line()) make[1]: Leaving directory '/tmp/libxml2-2.9.2/python/tests' Fix: sed -e "s/failUnlessEqual/assertEqual/" -i python/tests/tstLastError.py
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.