junitxml: fix python3 compat of the tests

This commit is contained in:
Ronny Pfannschmidt 2015-10-10 19:47:21 +02:00
parent 518c88f149
commit 5eef6a2821
1 changed files with 1 additions and 1 deletions

View File

@ -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)