aboutsummaryrefslogtreecommitdiff
path: root/Tests/ttLib/tables/_l_t_a_g_test.py
diff options
context:
space:
mode:
authorRod S <rsheeter@google.com>2022-03-25 12:41:45 -0700
committerSeigo Nonaka <nona@google.com>2022-03-25 12:49:44 -0700
commit0b59a54a78ee22be83fe249c724c19ebd7d26ede (patch)
tree98d81cb66669c50af608fd8a844e22039a00f5ae /Tests/ttLib/tables/_l_t_a_g_test.py
parent7464785773cfc59c180c0dbd4b8f91dbe9d5c49f (diff)
downloadfonttools-0b59a54a78ee22be83fe249c724c19ebd7d26ede.tar.gz
Update FontTools to 4.31.2 to gain access to iterSubTables.
Needed to facilitate implementation of additional emoji font validation. Ran tools/external_updater/updater.sh update fonttools Bug: 226676748 Test: will run presubmit Test: m fontchain_lint Change-Id: I1207eea8394848bd2ef5040de9aebc8f940b1d96
Diffstat (limited to 'Tests/ttLib/tables/_l_t_a_g_test.py')
-rw-r--r--Tests/ttLib/tables/_l_t_a_g_test.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/ttLib/tables/_l_t_a_g_test.py b/Tests/ttLib/tables/_l_t_a_g_test.py
index fc9be82a..29119903 100644
--- a/Tests/ttLib/tables/_l_t_a_g_test.py
+++ b/Tests/ttLib/tables/_l_t_a_g_test.py
@@ -1,7 +1,6 @@
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
@@ -46,14 +45,14 @@ class Test_l_t_a_g(unittest.TestCase):
table = newTable("ltag")
table.decompile(self.DATA_, ttFont=None)
table.toXML(writer, ttFont=None)
- expected = os.linesep.join([
+ expected = "\n".join([
'<?xml version="1.0" encoding="UTF-8"?>',
'<version value="1"/>',
'<flags value="0"/>',
'<LanguageTag tag="en"/>',
'<LanguageTag tag="zh-Hant"/>',
'<LanguageTag tag="zh"/>'
- ]) + os.linesep
+ ]) + "\n"
self.assertEqual(expected.encode("utf_8"), writer.file.getvalue())