junitxml: fix python3 compat of the tests
This commit is contained in:
parent
518c88f149
commit
5eef6a2821
|
@ -52,7 +52,7 @@ class DomNode(object):
|
|||
|
||||
def find_by_tag(self, tag):
|
||||
t = type(self)
|
||||
return map(t, self.__node.getElementsByTagName(tag))
|
||||
return [t(x) for x in self.__node.getElementsByTagName(tag)]
|
||||
|
||||
def __getitem__(self, key):
|
||||
node = self.__node.getAttributeNode(key)
|
||||
|
|
Loading…
Reference in New Issue