Ignore line endings

This commit is contained in:
Jens Kutilek 2017-01-24 14:05:18 +01:00
parent 15b2f465b9
commit c9bdda2bc3

View File

@ -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__':