After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 738778 - DeprecationWarnings in test suite
DeprecationWarnings in test suite
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: tests
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-18 18:40 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-07-05 13:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Arfrever Frehtes Taifersar Arahesis 2014-10-18 18:40:01 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
Comment 1 GNOME Infrastructure Team 2021-07-05 13:26:50 UTC
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.