diff --git a/Tests/ttLib/tables/ttProgram_test.py b/Tests/ttLib/tables/ttProgram_test.py index 481eda1f2..8abc9b575 100644 --- a/Tests/ttLib/tables/ttProgram_test.py +++ b/Tests/ttLib/tables/ttProgram_test.py @@ -102,7 +102,7 @@ class ProgramTest(unittest.TestCase): def test_xml_indentation(self): with open(TTPROGRAM_TTX, 'rb') as f: - ttProgramXML = f.read() + ttProgramXML = f.read().splitlines() p = Program() p.fromBytecode(BYTECODE) ttfont = TestFont() @@ -113,7 +113,7 @@ class ProgramTest(unittest.TestCase): finally: output_string = buf.getvalue() buf.close() - assert output_string == ttProgramXML + assert output_string.splitlines() == ttProgramXML if __name__ == '__main__':