From 743f91ffc42360ba5352375854038fa0f9f48b41 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Sat, 28 Aug 2004 20:13:15 +0000 Subject: xml encoding of special characters (&, <, >) --- python/tests/XmlTestRunner.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python') 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.id(), test.shortDescription()) # TODO: add err + def shortDescription(self): + text = unittest.TestResult.shortDescription() + return text.replace('&', '&').replace('<', '<').replace('>', '>') + class XmlTestRunner: def _makeResult(self): -- cgit