Commit 5acf371a authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[py3] Sort list of dicts by items in assertXSDAttributes

Apparently, this is what python2 does.
parent 1dd2faa2de16
......@@ -202,7 +202,7 @@ class RelaxNGTestMixin(XmlTestMixin):
adef['type'] = 'xsd:' + data_elements[0].attrib['type']
self._element_fixed_value(adef, adef_element)
return sorted(adefs)
return sorted(adefs, key=lambda d: list(d.items()))
def _element_fixed_value(self, edef, element):
values = self.xpath(element, 'rng:value')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment