diff options
Diffstat (limited to 'Tests/ttLib/tables/_l_t_a_g_test.py')
-rw-r--r-- | Tests/ttLib/tables/_l_t_a_g_test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/ttLib/tables/_l_t_a_g_test.py b/Tests/ttLib/tables/_l_t_a_g_test.py index 29119903..fc9be82a 100644 --- a/Tests/ttLib/tables/_l_t_a_g_test.py +++ b/Tests/ttLib/tables/_l_t_a_g_test.py @@ -1,6 +1,7 @@ from fontTools.misc.testTools import parseXML from fontTools.misc.xmlWriter import XMLWriter from io import BytesIO +import os import struct import unittest from fontTools.ttLib import newTable @@ -45,14 +46,14 @@ class Test_l_t_a_g(unittest.TestCase): table = newTable("ltag") table.decompile(self.DATA_, ttFont=None) table.toXML(writer, ttFont=None) - expected = "\n".join([ + expected = os.linesep.join([ '<?xml version="1.0" encoding="UTF-8"?>', '<version value="1"/>', '<flags value="0"/>', '<LanguageTag tag="en"/>', '<LanguageTag tag="zh-Hant"/>', '<LanguageTag tag="zh"/>' - ]) + "\n" + ]) + os.linesep self.assertEqual(expected.encode("utf_8"), writer.file.getvalue()) |