diff --git a/Lib/fontTools/misc/testTools.py b/Lib/fontTools/misc/testTools.py
index 4b0cd0813..db316a827 100644
--- a/Lib/fontTools/misc/testTools.py
+++ b/Lib/fontTools/misc/testTools.py
@@ -41,7 +41,7 @@ def parseXML(xmlSnippet):
def parseXmlInto(font, parseInto, xmlSnippet):
parsed_xml = [e for e in parseXML(xmlSnippet.strip()) if not isinstance(e, str)]
for name, attrs, content in parsed_xml:
- parseInto.fromXML(name, attrs, content, font)
+ parseInto.fromXML(name, attrs, content, font)
parseInto.populateDefaults()
return parseInto
diff --git a/Tests/ttLib/tables/otTables_test.py b/Tests/ttLib/tables/otTables_test.py
index ffaadd28c..3f74b7a94 100644
--- a/Tests/ttLib/tables/otTables_test.py
+++ b/Tests/ttLib/tables/otTables_test.py
@@ -689,29 +689,31 @@ def test_splitMarkBasePos():
class ColrV1Test(unittest.TestCase):
def setUp(self):
- self.font = FakeFont(['.notdef', 'meh'])
+ self.font = FakeFont(['.notdef', 'meh'])
def test_traverseEmptyPaintColrLayersNeedsNoLayerList(self):
- colr = parseXmlInto(self.font, otTables.COLR(),
- '''
-
-
-
-
-
-
-
-
-
-
- ''')
- paint = colr.BaseGlyphList.BaseGlyphPaintRecord[0].Paint
-
- # Just want to confirm we don't crash
- visited = []
- paint.traverse(colr, lambda p: visited.append(p))
- assert len(visited) == 1
+ colr = parseXmlInto(
+ self.font,
+ otTables.COLR(),
+ '''
+
+
+
+
+
+
+
+
+
+
+ ''',
+ )
+ paint = colr.BaseGlyphList.BaseGlyphPaintRecord[0].Paint
+ # Just want to confirm we don't crash
+ visited = []
+ paint.traverse(colr, lambda p: visited.append(p))
+ assert len(visited) == 1
if __name__ == "__main__":