summaryrefslogtreecommitdiff
path: root/tests/test_basic_api.py
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-09-09 18:32:12 +0200
committergbrandl <devnull@localhost>2007-09-09 18:32:12 +0200
commit6082c38279018382425db80debcf8b27f50872c0 (patch)
tree437a74bbbb5e6ee32366b4fffa734ba6f407d012 /tests/test_basic_api.py
parente5cfb6e315751de3206755a4c5869e9a200ab55f (diff)
downloadpygments-6082c38279018382425db80debcf8b27f50872c0.tar.gz
Fix the test_basic_api.
Diffstat (limited to 'tests/test_basic_api.py')
-rw-r--r--tests/test_basic_api.py2
1 files changed, 1 insertions, 1 deletions
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: