diff --git a/Lib/fontTools/feaLib/lexer_test.py b/Lib/fontTools/feaLib/lexer_test.py index 7940fef47..e6055e826 100644 --- a/Lib/fontTools/feaLib/lexer_test.py +++ b/Lib/fontTools/feaLib/lexer_test.py @@ -131,7 +131,7 @@ class IncludingLexerTest(unittest.TestCase): return os.path.join(path, "testdata", filename) def test_include(self): - lexer = IncludingLexer((self.getpath("include4.fea"), None)) + lexer = IncludingLexer(self.getpath("include4.fea")) result = ['%s %s:%d' % (token, os.path.split(loc[0])[1], loc[1]) for _, token, loc in lexer] self.assertEqual(result, [ @@ -150,15 +150,15 @@ class IncludingLexerTest(unittest.TestCase): ]) def test_include_limit(self): - lexer = IncludingLexer((self.getpath("include6.fea"), None)) + lexer = IncludingLexer(self.getpath("include6.fea")) self.assertRaises(FeatureLibError, lambda: list(lexer)) def test_include_self(self): - lexer = IncludingLexer((self.getpath("includeself.fea"), None)) + lexer = IncludingLexer(self.getpath("includeself.fea")) self.assertRaises(FeatureLibError, lambda: list(lexer)) def test_include_missing_file(self): - lexer = IncludingLexer((self.getpath("includemissingfile.fea"), None)) + lexer = IncludingLexer(self.getpath("includemissingfile.fea")) self.assertRaises(FeatureLibError, lambda: list(lexer))