diff options
author | Frederic Peters <fpeters@entrouvert.com> | 2004-08-28 20:13:15 +0000 |
---|---|---|
committer | Frederic Peters <fpeters@entrouvert.com> | 2004-08-28 20:13:15 +0000 |
commit | 743f91ffc42360ba5352375854038fa0f9f48b41 (patch) | |
tree | 8a15a34806fb257cae8088fc4f2f1da836bcabef /python | |
parent | 5dd054bfd892bf6dd2f224b47b5fd3b61f30fe1e (diff) | |
download | lasso-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.py | 4 |
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('&', '&').replace('<', '<').replace('>', '>') + class XmlTestRunner: def _makeResult(self): |