Stefan Behnel <stefan...@behnel.de> added the comment:
Right. If you want to compare XML trees for equality, either write your own deep-tree comparison function, or use something like doctestcompare, or use a C14N serialisation (which is now part of Py3.8). Whichever suits your needs. https://github.com/lxml/lxml/blob/master/src/lxml/doctestcompare.py https://docs.python.org/3.8/library/xml.etree.elementtree.html#xml.etree.ElementTree.canonicalize ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37792> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com