From 6082c38279018382425db80debcf8b27f50872c0 Mon Sep 17 00:00:00 2001 From: gbrandl Date: Sun, 9 Sep 2007 18:32:12 +0200 Subject: Fix the test_basic_api. --- tests/test_basic_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_basic_api.py') diff --git a/tests/test_basic_api.py b/tests/test_basic_api.py index abdeb86d..0bcbb938 100644 --- a/tests/test_basic_api.py +++ b/tests/test_basic_api.py @@ -40,6 +40,7 @@ class LexersTest(unittest.TestCase): result = lexer.analyse_text("abc") a(isinstance(result, float) and 0.0 <= result <= 1.0) + inst = lexer(opt1="val1", opt2="val2") if issubclass(lexer, RegexLexer): if not hasattr(lexer, '_tokens'): # if there's no "_tokens", the lexer has to be one with @@ -50,7 +51,6 @@ class LexersTest(unittest.TestCase): else: a('root' in lexer._tokens, '%s has no root state' % lexer) - inst = lexer(opt1="val1", opt2="val2") tokens = list(inst.get_tokens(test_content)) txt = "" for token in tokens: -- cgit v1.2.1