From 3affc725aaa968f524028346304f3ea4a6365640 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 21 Mar 2016 18:54:06 +0000 Subject: [PATCH] [feaLib.lexer_test] fix up tests after changes to make_lexer_ --- Lib/fontTools/feaLib/lexer_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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))