From c9bdda2bc3215b12d172e19963e4513cb4553af4 Mon Sep 17 00:00:00 2001 From: Jens Kutilek Date: Tue, 24 Jan 2017 14:05:18 +0100 Subject: [PATCH] Ignore line endings --- Tests/ttLib/tables/ttProgram_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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__':