summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-08-28 20:13:15 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-08-28 20:13:15 +0000
commit743f91ffc42360ba5352375854038fa0f9f48b41 (patch)
tree8a15a34806fb257cae8088fc4f2f1da836bcabef /python
parent5dd054bfd892bf6dd2f224b47b5fd3b61f30fe1e (diff)
downloadlasso-743f91ffc42360ba5352375854038fa0f9f48b41.tar.gz
lasso-743f91ffc42360ba5352375854038fa0f9f48b41.tar.xz
lasso-743f91ffc42360ba5352375854038fa0f9f48b41.zip
xml encoding of special characters (&, <, >)
Diffstat (limited to 'python')
-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):