Ignore line endings
This commit is contained in:
parent
15b2f465b9
commit
c9bdda2bc3
@ -102,7 +102,7 @@ class ProgramTest(unittest.TestCase):
|
|||||||
|
|
||||||
def test_xml_indentation(self):
|
def test_xml_indentation(self):
|
||||||
with open(TTPROGRAM_TTX, 'rb') as f:
|
with open(TTPROGRAM_TTX, 'rb') as f:
|
||||||
ttProgramXML = f.read()
|
ttProgramXML = f.read().splitlines()
|
||||||
p = Program()
|
p = Program()
|
||||||
p.fromBytecode(BYTECODE)
|
p.fromBytecode(BYTECODE)
|
||||||
ttfont = TestFont()
|
ttfont = TestFont()
|
||||||
@ -113,7 +113,7 @@ class ProgramTest(unittest.TestCase):
|
|||||||
finally:
|
finally:
|
||||||
output_string = buf.getvalue()
|
output_string = buf.getvalue()
|
||||||
buf.close()
|
buf.close()
|
||||||
assert output_string == ttProgramXML
|
assert output_string.splitlines() == ttProgramXML
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user