summaryrefslogtreecommitdiffstats
path: root/python/tests/XmlTestRunner.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/XmlTestRunner.py')
-rw-r--r--python/tests/XmlTestRunner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/tests/XmlTestRunner.py b/python/tests/XmlTestRunner.py
index aef726c7..5d3efdfe 100644
--- a/python/tests/XmlTestRunner.py
+++ b/python/tests/XmlTestRunner.py
@@ -48,6 +48,10 @@ class XmlTestResult(unittest.TestResult):
</test>""" % (test.id(), test.shortDescription())
# TODO: add err
+ def shortDescription(self):
+ text = unittest.TestResult.shortDescription()
+ return text.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
+
class XmlTestRunner:
def _makeResult(self):