python 3.8 seems to actually give you XML attributes in the order you add them; previous versions seem to be sorting them? This would add them in the odd order our test is expecting them to be in, and makes the output XML bytewise-consistent between python versions.
(I'm not sure it's reasonable to expect the attributes in a specific order, especially the odd order we do expect where the indicators come after the tag, though. Semantically it's all the same anyway.)
Total kludge to fix #142
python 3.8 seems to actually give you XML attributes in the order you add them; previous versions seem to be sorting them? This would add them in the odd order our test is expecting them to be in, and makes the output XML bytewise-consistent between python versions.
(I'm not sure it's reasonable to expect the attributes in a specific order, especially the odd order we do expect where the indicators come after the tag, though. Semantically it's all the same anyway.)