summaryrefslogtreecommitdiff
path: root/googletest/test/gtest_xml_test_utils.py
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2020-04-09 01:55:35 +0000
committerEnji Cooper <ngie@FreeBSD.org>2020-04-09 01:55:35 +0000
commitcd024ff37bc5950173e4c7f34f7259d85825e810 (patch)
tree24e26b52391d78c7c7b65168aca8f803fde926b1 /googletest/test/gtest_xml_test_utils.py
parent83481c8c5c0cd0b3fc86f39b2985efd4e300200a (diff)
Notes
Diffstat (limited to 'googletest/test/gtest_xml_test_utils.py')
-rwxr-xr-xgoogletest/test/gtest_xml_test_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/test/gtest_xml_test_utils.py b/googletest/test/gtest_xml_test_utils.py
index 1e0358592fb0..9914a49ec188 100755
--- a/googletest/test/gtest_xml_test_utils.py
+++ b/googletest/test/gtest_xml_test_utils.py
@@ -94,7 +94,7 @@ class GTestXMLTestCase(gtest_test_utils.TestCase):
self.assertEquals(
len(expected_children), len(actual_children),
'number of child elements differ in element ' + actual_node.tagName)
- for child_id, child in expected_children.iteritems():
+ for child_id, child in expected_children.items():
self.assert_(child_id in actual_children,
'<%s> is not in <%s> (in element %s)' %
(child_id, actual_children, actual_node.tagName))
@@ -169,7 +169,7 @@ class GTestXMLTestCase(gtest_test_utils.TestCase):
* The stack traces are removed.
"""
- if element.tagName == 'testsuites':
+ if element.tagName in ('testsuites', 'testsuite', 'testcase'):
timestamp = element.getAttributeNode('timestamp')
timestamp.value = re.sub(r'^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d$',
'*', timestamp.value)