From 2c3be8fe6aa280228f7cba160bd3e1a83c6dc48d Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Fri, 31 May 2013 15:34:36 -0700 Subject: [PATCH] remove unnecessary usage of unicode strings (fix #12) --- tools/rosunit/test/test_junitxml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/rosunit/test/test_junitxml.py b/tools/rosunit/test/test_junitxml.py index e8712546..64408b57 100644 --- a/tools/rosunit/test/test_junitxml.py +++ b/tools/rosunit/test/test_junitxml.py @@ -77,9 +77,9 @@ class MockErrorType(Exception): def _writeMockResultFile(result): "writes a test result as a gtest compatible test runner would do" with open(result.filename, 'w') as f: - f.write(u"""""") + f.write('\n') if len(result.suites) > 1 or result.noSuitesRoot == False: - f.write(u"""\n""") + f.write('\n') for suite in result.suites: f.write('\n') for case in suite.cases: @@ -89,7 +89,7 @@ def _writeMockResultFile(result): f.write('\n') f.write('\n') if len(result.suites) > 1 or result.noSuitesRoot == False: - f.write(u"""\n""") + f.write('\n') class XmlResultTestRead(unittest.TestCase):