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):